diff options
author | Pauli <pauli@openssl.org> | 2022-02-24 09:52:52 +1100 |
---|---|---|
committer | Pauli <pauli@openssl.org> | 2022-02-28 16:27:23 +1100 |
commit | 75bb565f81b9f3dec3341210855e12048ab52dfa (patch) | |
tree | 47997260e0346d19421f98f66bdbe284455fd685 /crypto/o_str.c | |
parent | 4b908b6c386ef02cf7c363d639c9ef831d77587f (diff) |
Change `strlen' argument name to `strlength' to avoid c++ reserved words.
Fixes #17753
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/17764)
(cherry picked from commit 28e141c45d36757e052b72685fb874968f013d43)
Diffstat (limited to 'crypto/o_str.c')
-rw-r--r-- | crypto/o_str.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/crypto/o_str.c b/crypto/o_str.c index d7aa665ad8..fe70d9ff40 100644 --- a/crypto/o_str.c +++ b/crypto/o_str.c @@ -215,7 +215,7 @@ unsigned char *OPENSSL_hexstr2buf(const char *str, long *buflen) return ossl_hexstr2buf_sep(str, buflen, DEFAULT_SEPARATOR); } -static int buf2hexstr_sep(char *str, size_t str_n, size_t *strlen, +static int buf2hexstr_sep(char *str, size_t str_n, size_t *strlength, const unsigned char *buf, size_t buflen, const char sep) { @@ -226,8 +226,8 @@ static int buf2hexstr_sep(char *str, size_t str_n, size_t *strlen, int has_sep = (sep != CH_ZERO); size_t len = has_sep ? buflen * 3 : 1 + buflen * 2; - if (strlen != NULL) - *strlen = len; + if (strlength != NULL) + *strlength = len; if (str == NULL) return 1; @@ -253,11 +253,11 @@ static int buf2hexstr_sep(char *str, size_t str_n, size_t *strlen, return 1; } -int OPENSSL_buf2hexstr_ex(char *str, size_t str_n, size_t *strlen, +int OPENSSL_buf2hexstr_ex(char *str, size_t str_n, size_t *strlength, const unsigned char *buf, size_t buflen, const char sep) { - return buf2hexstr_sep(str, str_n, strlen, buf, buflen, sep); + return buf2hexstr_sep(str, str_n, strlength, buf, buflen, sep); } char *ossl_buf2hexstr_sep(const unsigned char *buf, long buflen, char sep) |