diff options
author | schwarze <> | 2020-09-16 07:25:15 +0000 |
---|---|---|
committer | schwarze <> | 2020-09-16 07:25:15 +0000 |
commit | 4d4b6ca21abb045b3f6584cc35a22ad4ab7a719a (patch) | |
tree | 69c80e1d01b983672f00b41accbb03cdf34a436f /src/lib/libssl/man | |
parent | 9118930a1739225789e932d31d639b1e1d796806 (diff) | |
download | openbsd-4d4b6ca21abb045b3f6584cc35a22ad4ab7a719a.tar.gz openbsd-4d4b6ca21abb045b3f6584cc35a22ad4ab7a719a.tar.bz2 openbsd-4d4b6ca21abb045b3f6584cc35a22ad4ab7a719a.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 'src/lib/libssl/man')
-rw-r--r-- | src/lib/libssl/man/SSL_get_ciphers.3 | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/lib/libssl/man/SSL_get_ciphers.3 b/src/lib/libssl/man/SSL_get_ciphers.3 index 598e954456..8030f0bbb1 100644 --- a/src/lib/libssl/man/SSL_get_ciphers.3 +++ b/src/lib/libssl/man/SSL_get_ciphers.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: SSL_get_ciphers.3,v 1.10 2020/09/16 07:11:14 schwarze Exp $ | 1 | .\" $OpenBSD: SSL_get_ciphers.3,v 1.11 2020/09/16 07:25:15 schwarze Exp $ |
2 | .\" full merge up to: OpenSSL b97fdb57 Nov 11 09:33:09 2016 +0100 | 2 | .\" full merge up to: OpenSSL b97fdb57 Nov 11 09:33:09 2016 +0100 |
3 | .\" selective merge up to: OpenSSL 83cf7abf May 29 13:07:08 2018 +0100 | 3 | .\" selective merge up to: OpenSSL 83cf7abf May 29 13:07:08 2018 +0100 |
4 | .\" | 4 | .\" |
@@ -176,12 +176,11 @@ is called on that context object. | |||
176 | .Fn SSL_CTX_get_ciphers | 176 | .Fn SSL_CTX_get_ciphers |
177 | returns an internal pointer to a list of ciphers or | 177 | returns an internal pointer to a list of ciphers or |
178 | .Dv NULL | 178 | .Dv NULL |
179 | if no ciphers are available. | 179 | if |
180 | If | ||
181 | .Fa ctx | 180 | .Fa ctx |
182 | is | 181 | is |
183 | .Dv NULL , | 182 | .Dv NULL |
184 | calling this function crashes the program. | 183 | or if no ciphers are available. |
185 | The returned pointer becomes invalid when | 184 | The returned pointer becomes invalid when |
186 | .Fa ctx | 185 | .Fa ctx |
187 | is destroyed or when | 186 | is destroyed or when |