diff options
Diffstat (limited to 'src/lib/libssl/man')
-rw-r--r-- | src/lib/libssl/man/Makefile | 3 | ||||
-rw-r--r-- | src/lib/libssl/man/SSL_CTX_set_keylog_callback.3 | 44 |
2 files changed, 46 insertions, 1 deletions
diff --git a/src/lib/libssl/man/Makefile b/src/lib/libssl/man/Makefile index 1dbe53751f..c524a22493 100644 --- a/src/lib/libssl/man/Makefile +++ b/src/lib/libssl/man/Makefile | |||
@@ -1,4 +1,4 @@ | |||
1 | # $OpenBSD: Makefile,v 1.73 2021/09/14 14:30:57 schwarze Exp $ | 1 | # $OpenBSD: Makefile,v 1.74 2021/10/23 11:41:52 beck Exp $ |
2 | 2 | ||
3 | .include <bsd.own.mk> | 3 | .include <bsd.own.mk> |
4 | 4 | ||
@@ -32,6 +32,7 @@ MAN = BIO_f_ssl.3 \ | |||
32 | SSL_CTX_set_default_passwd_cb.3 \ | 32 | SSL_CTX_set_default_passwd_cb.3 \ |
33 | SSL_CTX_set_generate_session_id.3 \ | 33 | SSL_CTX_set_generate_session_id.3 \ |
34 | SSL_CTX_set_info_callback.3 \ | 34 | SSL_CTX_set_info_callback.3 \ |
35 | SSL_CTX_set_keylog_callback.3 \ | ||
35 | SSL_CTX_set_max_cert_list.3 \ | 36 | SSL_CTX_set_max_cert_list.3 \ |
36 | SSL_CTX_set_min_proto_version.3 \ | 37 | SSL_CTX_set_min_proto_version.3 \ |
37 | SSL_CTX_set_mode.3 \ | 38 | SSL_CTX_set_mode.3 \ |
diff --git a/src/lib/libssl/man/SSL_CTX_set_keylog_callback.3 b/src/lib/libssl/man/SSL_CTX_set_keylog_callback.3 new file mode 100644 index 0000000000..023643d8ee --- /dev/null +++ b/src/lib/libssl/man/SSL_CTX_set_keylog_callback.3 | |||
@@ -0,0 +1,44 @@ | |||
1 | .\" $OpenBSD: SSL_CTX_set_keylog_callback.3,v 1.1 2021/10/23 11:41:52 beck Exp $ | ||
2 | .\" Copyright (c) 2021, Bob Beck <beck@openbsd.org> | ||
3 | .\" | ||
4 | .\" Permission to use, copy, modify, and distribute this software for any | ||
5 | .\" purpose with or without fee is hereby granted, provided that the above | ||
6 | .\" copyright notice and this permission notice appear in all copies. | ||
7 | .\" | ||
8 | .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
9 | .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
10 | .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
11 | .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
12 | .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
13 | .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
14 | .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
15 | .\" | ||
16 | .Dd $Mdocdate: October 23 2021 $ | ||
17 | .Dt SSL_CTX_SET_KEYLOG_CALLBACK 3 | ||
18 | .Os | ||
19 | .Sh NAME | ||
20 | .Nm SSL_CTX_set_keylog_callback , | ||
21 | .Nm SSL_CTX_get_keylog_callback | ||
22 | .Nd set and get the unused key logging callback | ||
23 | .Sh SYNOPSIS | ||
24 | .In openssl/ssl.h | ||
25 | .Bd -literal | ||
26 | typedef void (*SSL_CTX_keylog_cb_func)(const SSL *ssl, const char *line) | ||
27 | .Ed | ||
28 | .Ft void | ||
29 | .Fn SSL_CTX_set_keylog_callback "SSL_CTX *ctx" "SSL_CTX_keylog_cb_func cb" | ||
30 | .Ft SSL_CTX_keylog_cb_func | ||
31 | .Fn SSL_CTX_get_keylog_callback "const SSL_CTX *ctx" | ||
32 | .Sh DESCRIPTION | ||
33 | .Fn SSL_CTX_set_keylog_callback | ||
34 | sets the TLS key logging callback. | ||
35 | This callback is never called in LibreSSL. | ||
36 | .Pp | ||
37 | .Fn SSL_CTX_set_keylog_callback | ||
38 | retrieves the previously set TLS key logging callback. | ||
39 | .Pp | ||
40 | These functions are provided only for compatibility with OpenSSL. | ||
41 | .Sh RETURN VALUES | ||
42 | .Fn SSL_CTX_get_keylog_callback | ||
43 | returns the previously set TLS key logging callback, or NULL | ||
44 | if no callback has been set. | ||