diff options
author | beck <> | 2021-10-23 11:41:52 +0000 |
---|---|---|
committer | beck <> | 2021-10-23 11:41:52 +0000 |
commit | 7585b0231596c5d2015f31d0be70147c37b7f771 (patch) | |
tree | fcc6827eb234fa77e1891d55e0878cd73d50c58d /src/lib/libssl/ssl_lib.c | |
parent | a5f888f12a4a0e150b9d5d12d42393211132e830 (diff) | |
download | openbsd-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_lib.c')
-rw-r--r-- | src/lib/libssl/ssl_lib.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/lib/libssl/ssl_lib.c b/src/lib/libssl/ssl_lib.c index 0f86238d5e..cb8c02844c 100644 --- a/src/lib/libssl/ssl_lib.c +++ b/src/lib/libssl/ssl_lib.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssl_lib.c,v 1.268 2021/09/10 08:59:56 tb Exp $ */ | 1 | /* $OpenBSD: ssl_lib.c,v 1.269 2021/10/23 11:41:52 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 | * |
@@ -770,6 +770,18 @@ int | |||
770 | return (s->internal->verify_callback); | 770 | return (s->internal->verify_callback); |
771 | } | 771 | } |
772 | 772 | ||
773 | void | ||
774 | SSL_CTX_set_keylog_callback(SSL_CTX *ctx, SSL_CTX_keylog_cb_func cb) | ||
775 | { | ||
776 | ctx->internal->keylog_callback = cb; | ||
777 | } | ||
778 | |||
779 | SSL_CTX_keylog_cb_func | ||
780 | SSL_CTX_get_keylog_callback(const SSL_CTX *ctx) | ||
781 | { | ||
782 | return (ctx->internal->keylog_callback); | ||
783 | } | ||
784 | |||
773 | int | 785 | int |
774 | SSL_CTX_get_verify_mode(const SSL_CTX *ctx) | 786 | SSL_CTX_get_verify_mode(const SSL_CTX *ctx) |
775 | { | 787 | { |