summaryrefslogtreecommitdiff
path: root/src/http_auth.h
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.h
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.h')
-rw-r--r--src/http_auth.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/http_auth.h b/src/http_auth.h
index 5b9aacbd..64a32da7 100644
--- a/src/http_auth.h
+++ b/src/http_auth.h
@@ -69,7 +69,9 @@ const http_auth_scheme_t * http_auth_scheme_get (const buffer *name);
void http_auth_scheme_set (const http_auth_scheme_t *scheme);
const http_auth_backend_t * http_auth_backend_get (const buffer *name);
void http_auth_backend_set (const http_auth_backend_t *backend);
-int http_auth_const_time_memeq (const char *a, size_t alen, const char *b, size_t blen);
+
+__attribute_pure__
+int http_auth_const_time_memeq_pad (const void *a, size_t alen, const void *b, size_t blen);
void http_auth_setenv(connection *con, const char *username, size_t ulen, const char *auth_type, size_t alen);