-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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@
- Loading branch information
beck
committed
Oct 23, 2021
1 parent
c3f3de8
commit 648d39f
Showing
5 changed files
with
67 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
.\" $OpenBSD: SSL_CTX_set_keylog_callback.3,v 1.1 2021/10/23 11:41:52 beck Exp $ | ||
.\" Copyright (c) 2021, Bob Beck <beck@openbsd.org> | ||
.\" | ||
.\" Permission to use, copy, modify, and distribute this software for any | ||
.\" purpose with or without fee is hereby granted, provided that the above | ||
.\" copyright notice and this permission notice appear in all copies. | ||
.\" | ||
.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
.\" | ||
.Dd $Mdocdate: October 23 2021 $ | ||
.Dt SSL_CTX_SET_KEYLOG_CALLBACK 3 | ||
.Os | ||
.Sh NAME | ||
.Nm SSL_CTX_set_keylog_callback , | ||
.Nm SSL_CTX_get_keylog_callback | ||
.Nd set and get the unused key logging callback | ||
.Sh SYNOPSIS | ||
.In openssl/ssl.h | ||
.Bd -literal | ||
typedef void (*SSL_CTX_keylog_cb_func)(const SSL *ssl, const char *line) | ||
.Ed | ||
.Ft void | ||
.Fn SSL_CTX_set_keylog_callback "SSL_CTX *ctx" "SSL_CTX_keylog_cb_func cb" | ||
.Ft SSL_CTX_keylog_cb_func | ||
.Fn SSL_CTX_get_keylog_callback "const SSL_CTX *ctx" | ||
.Sh DESCRIPTION | ||
.Fn SSL_CTX_set_keylog_callback | ||
sets the TLS key logging callback. | ||
This callback is never called in LibreSSL. | ||
.Pp | ||
.Fn SSL_CTX_set_keylog_callback | ||
retrieves the previously set TLS key logging callback. | ||
.Pp | ||
These functions are provided only for compatibility with OpenSSL. | ||
.Sh RETURN VALUES | ||
.Fn SSL_CTX_get_keylog_callback | ||
returns the previously set TLS key logging callback, or NULL | ||
if no callback has been set. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters