aboutsummaryrefslogtreecommitdiffstats
path: root/test/ssltestlib.h
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2016-07-04 14:51:56 +0100
committerMatt Caswell <matt@openssl.org>2016-08-19 13:52:40 +0100
commitd9a2e90bcede62cce36a845a677f99a22c419a9c (patch)
treecb504edf240084aaf8bddbbcb094c601965f9cfd /test/ssltestlib.h
parent15269e565427e9025c733c2a8b3d4b6d6c5a3bd3 (diff)
downloadopenssl-d9a2e90bcede62cce36a845a677f99a22c419a9c.tar.gz
Add a (D)TLS dumper BIO
Dump out the records passed over the BIO. Only works for DTLS at the moment but could easily be extended to TLS. Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'test/ssltestlib.h')
-rw-r--r--test/ssltestlib.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ssltestlib.h b/test/ssltestlib.h
index f05878aaa5..f0f32c8301 100644
--- a/test/ssltestlib.h
+++ b/test/ssltestlib.h
@@ -18,4 +18,8 @@ int create_ssl_ctx_pair(const SSL_METHOD *sm, const SSL_METHOD *cm,
int create_ssl_connection(SSL_CTX *serverctx, SSL_CTX *clientctx, SSL **sssl,
SSL **cssl, BIO *s_to_c_fbio, BIO *c_to_s_fbio);
+/* Note: Not thread safe! */
+const BIO_METHOD *bio_f_tls_dump_filter(void);
+void bio_f_tls_dump_filter_free(void);
+
#endif /* HEADER_SSLTESTLIB_H */