summaryrefslogtreecommitdiff
path: root/src/http_auth.c
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2019-09-08 18:25:39 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2019-09-08 18:25:39 -0400
commit89dfbf14a5f9bb19bc89e9c29bffe2f5e8dcdcaa (patch)
treea5e6c2212f490ee2e1368d0d4ba4ba4d8f850130 /src/http_auth.c
parent6ad325c659c4f602584c9450242204f410e74952 (diff)
downloadlighttpd1.4-89dfbf14a5f9bb19bc89e9c29bffe2f5e8dcdcaa.tar.gz
lighttpd1.4-89dfbf14a5f9bb19bc89e9c29bffe2f5e8dcdcaa.zip
[mod_auth] http_auth_const_time_memeq_pad()
rename http_auth_const_time_memeq() to http_auth_const_time_memeq_pad() for constant time padded comparison of strings of potentially different length
Diffstat (limited to 'src/http_auth.c')
-rw-r--r--src/http_auth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http_auth.c b/src/http_auth.c
index d3d3f6dd..24c2319a 100644
--- a/src/http_auth.c
+++ b/src/http_auth.c
@@ -51,7 +51,7 @@ void http_auth_backend_set (const http_auth_backend_t *backend)
}
-int http_auth_const_time_memeq (const char *a, const size_t alen, const char *b, const size_t blen)
+int http_auth_const_time_memeq_pad (const void *a, const size_t alen, const void *b, const size_t blen)
{
/* constant time memory compare, unless compiler figures it out
* (similar to mod_secdownload.c:const_time_memeq()) */