diff options
author | 2020-09-16 07:25:15 +0000 | |
---|---|---|
committer | 2020-09-16 07:25:15 +0000 | |
commit | cd7ceac03ec9fac5ccd122fba058a44812214ea5 (patch) | |
tree | c9180ca34d5e79a6422a8a7763b0d257611d4f5e /lib/libssl/man | |
parent | Mark SSL_get_cipher_list(3) as deprecated; it is badly misnamed, and there (diff) | |
download | wireguard-openbsd-cd7ceac03ec9fac5ccd122fba058a44812214ea5.tar.xz wireguard-openbsd-cd7ceac03ec9fac5ccd122fba058a44812214ea5.zip |
Let SSL_CTX_get_ciphers(NULL) return NULL rather than crash
for compatibility with OpenSSL
and for consistency with neighbouring functions;
suggested by jsing@ after i documented the crash;
OK jsing@.
Diffstat (limited to 'lib/libssl/man')
-rw-r--r-- | lib/libssl/man/SSL_get_ciphers.3 | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/libssl/man/SSL_get_ciphers.3 b/lib/libssl/man/SSL_get_ciphers.3 index 598e9544566..8030f0bbb1a 100644 --- a/lib/libssl/man/SSL_get_ciphers.3 +++ b/lib/libssl/man/SSL_get_ciphers.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: SSL_get_ciphers.3,v 1.10 2020/09/16 07:11:14 schwarze Exp $ +.\" $OpenBSD: SSL_get_ciphers.3,v 1.11 2020/09/16 07:25:15 schwarze Exp $ .\" full merge up to: OpenSSL b97fdb57 Nov 11 09:33:09 2016 +0100 .\" selective merge up to: OpenSSL 83cf7abf May 29 13:07:08 2018 +0100 .\" @@ -176,12 +176,11 @@ is called on that context object. .Fn SSL_CTX_get_ciphers returns an internal pointer to a list of ciphers or .Dv NULL -if no ciphers are available. -If +if .Fa ctx is -.Dv NULL , -calling this function crashes the program. +.Dv NULL +or if no ciphers are available. The returned pointer becomes invalid when .Fa ctx is destroyed or when |