summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFdaSilvaYY <fdasilvayy@gmail.com>2024-08-01 22:47:00 +0200
committerTomas Mraz <tomas@openssl.org>2024-08-07 19:25:10 +0200
commitca3c6f38292ab1326af9fa414cfa8de4e30a4e82 (patch)
tree6ac80f79f58ce969efab3501a43b901093c775f2 /include
parent668fdb593a9dcfe75718da6d59df67df87a92311 (diff)
crypto: factorize to hex chars conversion code.
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/24968)
Diffstat (limited to 'include')
-rw-r--r--include/internal/cryptlib.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/internal/cryptlib.h b/include/internal/cryptlib.h
index 32caabad7e..65f2b36801 100644
--- a/include/internal/cryptlib.h
+++ b/include/internal/cryptlib.h
@@ -162,6 +162,12 @@ char *ossl_buf2hexstr_sep(const unsigned char *buf, long buflen, char sep);
unsigned char *ossl_hexstr2buf_sep(const char *str, long *buflen,
const char sep);
+/**
+ * Writes |n| value in hex format into |buf|,
+ * and returns the number of bytes written
+ */
+size_t ossl_to_hex(char *buf, uint8_t n);
+
STACK_OF(SSL_COMP) *ossl_load_builtin_compressions(void);
void ossl_free_compression_methods_int(STACK_OF(SSL_COMP) *methods);