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_authn_file.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_authn_file.c')
-rw-r--r-- | src/mod_authn_file.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mod_authn_file.c b/src/mod_authn_file.c index 50efbe16..b15762bf 100644 --- a/src/mod_authn_file.c +++ b/src/mod_authn_file.c @@ -249,8 +249,7 @@ static int mod_authn_file_htdigest_get_loop(const char *data, const buffer *auth if (f_pwd[pwd_len-1] == '\r') --pwd_len; if (pwd_len != (ai->dlen << 1)) continue; - return http_auth_digest_hex2bin(f_pwd, pwd_len, - ai->digest, sizeof(ai->digest)); + return li_hex2bin(ai->digest, sizeof(ai->digest), f_pwd, pwd_len); } } while (*n && *(f_user = n+1)); |