summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl.h
diff options
context:
space:
mode:
authorbeck <>2021-10-23 11:41:52 +0000
committerbeck <>2021-10-23 11:41:52 +0000
commit7585b0231596c5d2015f31d0be70147c37b7f771 (patch)
treefcc6827eb234fa77e1891d55e0878cd73d50c58d /src/lib/libssl/ssl.h
parenta5f888f12a4a0e150b9d5d12d42393211132e830 (diff)
downloadopenbsd-7585b0231596c5d2015f31d0be70147c37b7f771.tar.gz
openbsd-7585b0231596c5d2015f31d0be70147c37b7f771.tar.bz2
openbsd-7585b0231596c5d2015f31d0be70147c37b7f771.zip
Add SSL_CTX_set_keylog_callback and SSL_CTX_get_keylog_callback
Some things in ports care about calling these functions. Since we will not provide private key logging functionality they are documented as being for compatibility and that they don't do anything. ok tb@
Diffstat (limited to 'src/lib/libssl/ssl.h')
-rw-r--r--src/lib/libssl/ssl.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/libssl/ssl.h b/src/lib/libssl/ssl.h
index 2a55cf0efb..09d68beb0b 100644
--- a/src/lib/libssl/ssl.h
+++ b/src/lib/libssl/ssl.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl.h,v 1.210 2021/10/15 16:48:46 jsing Exp $ */ 1/* $OpenBSD: ssl.h,v 1.211 2021/10/23 11:41:51 beck Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -505,6 +505,11 @@ void SSL_set_msg_callback(SSL *ssl, void (*cb)(int write_p, int version,
505 int content_type, const void *buf, size_t len, SSL *ssl, void *arg)); 505 int content_type, const void *buf, size_t len, SSL *ssl, void *arg));
506#define SSL_CTX_set_msg_callback_arg(ctx, arg) SSL_CTX_ctrl((ctx), SSL_CTRL_SET_MSG_CALLBACK_ARG, 0, (arg)) 506#define SSL_CTX_set_msg_callback_arg(ctx, arg) SSL_CTX_ctrl((ctx), SSL_CTRL_SET_MSG_CALLBACK_ARG, 0, (arg))
507#define SSL_set_msg_callback_arg(ssl, arg) SSL_ctrl((ssl), SSL_CTRL_SET_MSG_CALLBACK_ARG, 0, (arg)) 507#define SSL_set_msg_callback_arg(ssl, arg) SSL_ctrl((ssl), SSL_CTRL_SET_MSG_CALLBACK_ARG, 0, (arg))
508typedef void (*SSL_CTX_keylog_cb_func)(const SSL *ssl, const char *line);
509#if defined(LIBRESSL_NEW_API)
510void SSL_CTX_set_keylog_callback(SSL_CTX *ctx, SSL_CTX_keylog_cb_func cb);
511SSL_CTX_keylog_cb_func SSL_CTX_get_keylog_callback(const SSL_CTX *ctx);
512#endif
508 513
509#ifndef LIBRESSL_INTERNAL 514#ifndef LIBRESSL_INTERNAL
510struct ssl_aead_ctx_st; 515struct ssl_aead_ctx_st;