]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Update OPENSSL_buf2hexstr() to use DEFAULT_SEPARATOR.
authorPan Lanlan <abbypan@gmail.com>
Fri, 8 Sep 2023 16:13:43 +0000 (00:13 +0800)
committerPauli <pauli@openssl.org>
Sun, 17 Sep 2023 23:09:03 +0000 (09:09 +1000)
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)

crypto/o_str.c

index 119d791e2072bfbd5549fee7e3a243174fc6d39d..274b8476140b14ca9cc3f369a1797941c625961a 100644 (file)
@@ -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)