summaryrefslogtreecommitdiffstats
path: root/crypto/include
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2018-12-11 23:58:29 +0100
committerRichard Levitte <levitte@openssl.org>2019-03-06 11:15:13 +0100
commit2390c573aa598b715eb592c9b4da50a71453347a (patch)
treecff4c281e12afe6665530b4825ff5b1adfdef40a /crypto/include
parentMake the sparse array code use ossl_uintmax_t as its index rather than size_t. (diff)
downloadopenssl-2390c573aa598b715eb592c9b4da50a71453347a.tar.xz
openssl-2390c573aa598b715eb592c9b4da50a71453347a.zip
Add generic trace API
The idea is that the application shall be able to register output channels or callbacks to print tracing output as it sees fit. OpenSSL internals, on the other hand, want to print thoses texts using normal printing routines, such as BIO_printf() or BIO_dump() through well defined BIOs. When the application registers callbacks, the tracing functionality sets up an internal BIO that simply forwards received text to the appropriate application provided callback. Co-authored-by: Dr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com> Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/8198)
Diffstat (limited to 'crypto/include')
-rw-r--r--crypto/include/internal/cryptlib_int.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/include/internal/cryptlib_int.h b/crypto/include/internal/cryptlib_int.h
index 618dadb78f..422ef01dde 100644
--- a/crypto/include/internal/cryptlib_int.h
+++ b/crypto/include/internal/cryptlib_int.h
@@ -32,4 +32,6 @@ int ossl_init_thread_start(uint64_t opts);
# define OPENSSL_INIT_THREAD_ERR_STATE 0x02
# define OPENSSL_INIT_THREAD_RAND 0x04
+int ossl_trace_init(void);
+void ossl_trace_cleanup(void);
void ossl_malloc_setup_failures(void);