summaryrefslogtreecommitdiff
path: root/include/openssl
diff options
context:
space:
mode:
authorDr. David von Oheimb <David.von.Oheimb@siemens.com>2022-07-01 22:09:18 +0200
committerDr. David von Oheimb <dev@ddvo.net>2023-01-26 09:16:51 +0100
commit0243e821473ef6dedc8d5f3d6ebefc1b06f2e46f (patch)
treecd39a1120c206dbcf8b19676a17447291403f3f7 /include/openssl
parent114d99b46bfb212ffc510865df317ca2c1542623 (diff)
downloadopenssl-new-0243e821473ef6dedc8d5f3d6ebefc1b06f2e46f.tar.gz
add OSSL_TRACE_STRING(), OSSL_TRACE_STRING_MAX, and OSSL_trace_string()
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> Reviewed-by: David von Oheimb <david.von.oheimb@siemens.com> (Merged from https://github.com/openssl/openssl/pull/18704)
Diffstat (limited to 'include/openssl')
-rw-r--r--include/openssl/trace.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/openssl/trace.h b/include/openssl/trace.h
index 23f90c65aa..dbd2ffdf5e 100644
--- a/include/openssl/trace.h
+++ b/include/openssl/trace.h
@@ -305,6 +305,14 @@ void OSSL_trace_end(int category, BIO *channel);
# define OSSL_TRACE9(category, format, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) \
OSSL_TRACEV(category, (trc_out, format, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9))
+#define OSSL_TRACE_STRING_MAX 80
+int OSSL_trace_string(BIO *out, int text, int full,
+ const unsigned char *data, size_t size);
+#define OSSL_TRACE_STRING(category, text, full, data, len) \
+ OSSL_TRACE_BEGIN(category) { \
+ OSSL_trace_string(trc_out, text, full, data, len); \
+ } OSSL_TRACE_END(category)
+
# ifdef __cplusplus
}
# endif