diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2022-05-03 01:10:10 -0400 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2022-05-11 23:51:47 -0400 |
commit | f2610d23e242e96b49b115081c094206cca3e00d (patch) | |
tree | 5a91643123b35c77d37beab2debc24a477ffd275 /src/mod_auth.c | |
parent | 1194e6d24b92d1bdac60eb07ef45ad726d479654 (diff) | |
download | lighttpd-git-f2610d23e242e96b49b115081c094206cca3e00d.tar.gz |
[multiple] use buffer_append_char()
Diffstat (limited to 'src/mod_auth.c')
-rw-r--r-- | src/mod_auth.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mod_auth.c b/src/mod_auth.c index 83248967..c2ba1300 100644 --- a/src/mod_auth.c +++ b/src/mod_auth.c @@ -981,7 +981,7 @@ static void mod_auth_append_nonce (buffer *b, unix_time64_t cur_ts, const struct http_auth_require_t *require, int dalgo, int *rndptr) { buffer_append_uint_hex(b, (uintmax_t)cur_ts); - buffer_append_string_len(b, CONST_STR_LEN(":")); + buffer_append_char(b, ':'); const buffer * const nonce_secret = require->nonce_secret; int rnd; if (NULL == nonce_secret) @@ -991,7 +991,7 @@ mod_auth_append_nonce (buffer *b, unix_time64_t cur_ts, const struct http_auth_r ? (void)(rnd = *rndptr) : li_rand_pseudo_bytes((unsigned char *)&rnd, sizeof(rnd)); buffer_append_uint_hex(b, (uintmax_t)rnd); - buffer_append_string_len(b, CONST_STR_LEN(":")); + buffer_append_char(b, ':'); } size_t n; @@ -1115,7 +1115,7 @@ mod_auth_digest_authentication_info (buffer *b, unix_time64_t cur_ts, const stru buffer_clear(b); buffer_append_string_len(b, CONST_STR_LEN("nextnonce=\"")); mod_auth_append_nonce(b, cur_ts, require, dalgo, NULL); - buffer_append_string_len(b, CONST_STR_LEN("\"")); + buffer_append_char(b, '"'); } |