Skip to content

Commit

Permalink
httpauth: fix Visual Studio warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jobo-zt committed Mar 29, 2024
1 parent 2f6cbbc commit 1e563f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/re_httpauth.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions src/httpauth/digest.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1e563f7

Please sign in to comment.