diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2021-05-22 16:19:37 -0400 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2021-08-27 02:16:52 -0400 |
commit | e110b062be077b9890ef847ccf4e8bd19d00f179 (patch) | |
tree | 249c0b1854297c71db8756b20ea47c6827b4c991 /src/mod_auth.c | |
parent | 08c03cd450a8084fd88f7624655dfecbe52d243d (diff) | |
download | lighttpd-git-e110b062be077b9890ef847ccf4e8bd19d00f179.tar.gz |
[multiple] http_auth_digest_hex2bin -> li_hex2bin
move http_auth.c:http_auth_digest_hex2bin() to buffer.c:li_hex2bin()
for reuse, e.g. for use by mod_secdownload, which is not mod_auth*
Diffstat (limited to 'src/mod_auth.c')
-rw-r--r-- | src/mod_auth.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mod_auth.c b/src/mod_auth.c index 84fc63aa..693fab86 100644 --- a/src/mod_auth.c +++ b/src/mod_auth.c @@ -1324,8 +1324,7 @@ static handler_t mod_auth_check_digest(request_st * const r, void *p_d, const st { size_t resplen = strlen(respons); - if (0 != http_auth_digest_hex2bin(respons, resplen, - rdigest, sizeof(rdigest)) + if (0 != li_hex2bin(rdigest, sizeof(rdigest), respons, resplen) || resplen != (ai.dlen << 1)) { log_error(r->conf.errh, __FILE__, __LINE__, "digest: (%s): invalid format", respons); |