From 1e563f7ed1b01471f384b17dd0e39be585b27c2e Mon Sep 17 00:00:00 2001 From: jobo <38849089+jobo-zt@users.noreply.github.com> Date: Fri, 29 Mar 2024 10:43:49 +0800 Subject: [PATCH] httpauth: fix Visual Studio warning --- include/re_httpauth.h | 4 ++-- src/httpauth/digest.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/re_httpauth.h b/include/re_httpauth.h index d548e874e..e5b3c00d7 100644 --- a/include/re_httpauth.h +++ b/include/re_httpauth.h @@ -113,8 +113,8 @@ int httpauth_digest_response_print(struct re_printf *pf, const struct httpauth_digest_enc_resp *resp); int httpauth_digest_response_set_cnonce(struct httpauth_digest_enc_resp *resp, const struct httpauth_digest_chall *chall, const struct pl *method, - const char *user, const char *passwd, const char *entitybody, - const uint32_t cnonce, const uint32_t nc_); + const char *user, const char *passwd, const char *entitybody, + uint32_t cnonce, uint32_t nonce_cnt); int httpauth_digest_response(struct httpauth_digest_enc_resp **presp, const struct httpauth_digest_chall *chall, const struct pl *method, const char *uri, const char *user, const char *passwd, const char *qop, diff --git a/src/httpauth/digest.c b/src/httpauth/digest.c index 43f7c0f0e..a3e8dafc7 100644 --- a/src/httpauth/digest.c +++ b/src/httpauth/digest.c @@ -1000,13 +1000,13 @@ int httpauth_digest_response_print(struct re_printf *pf, int httpauth_digest_response_set_cnonce(struct httpauth_digest_enc_resp *resp, const struct httpauth_digest_chall *chall, const struct pl *method, const char *user, const char *passwd, const char *entitybody, - uint32_t cnonce, uint32_t nonce_counter) + uint32_t cnonce, uint32_t nonce_cnt) { if (!resp || !chall || !method || !passwd) return EINVAL; resp->cnonce = cnonce; - resp->nc = nonce_counter; + resp->nc = nonce_cnt; return digest_response(resp, chall, method, user, passwd, entitybody);