summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPan Lanlan <abbypan@gmail.com>2023-09-09 00:13:43 +0800
committerPauli <pauli@openssl.org>2023-09-18 09:09:03 +1000
commit861027ffd06019baf82148837e30a992ca9b055e (patch)
tree322a474d3bb76dcff63183687bf1280e7ed7e6d3
parent46ea5486f34ff8c2fed67674da2a363bbd66691b (diff)
Update OPENSSL_buf2hexstr() to use DEFAULT_SEPARATOR.
CLA: trivial Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/22041)
-rw-r--r--crypto/o_str.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/crypto/o_str.c b/crypto/o_str.c
index 119d791e20..274b847614 100644
--- a/crypto/o_str.c
+++ b/crypto/o_str.c
@@ -279,13 +279,13 @@ char *ossl_buf2hexstr_sep(const unsigned char *buf, long buflen, char sep)
/*
- * Given a buffer of length 'len' return a OPENSSL_malloc'ed string with its
- * hex representation @@@ (Contents of buffer are always kept in ASCII, also
- * on EBCDIC machines)
+ * Given a buffer of length 'buflen' return a OPENSSL_malloc'ed string with
+ * its hex representation @@@ (Contents of buffer are always kept in ASCII,
+ * also on EBCDIC machines)
*/
char *OPENSSL_buf2hexstr(const unsigned char *buf, long buflen)
{
- return ossl_buf2hexstr_sep(buf, buflen, ':');
+ return ossl_buf2hexstr_sep(buf, buflen, DEFAULT_SEPARATOR);
}
int openssl_strerror_r(int errnum, char *buf, size_t buflen)