summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorHugo Landau <hlandau@openssl.org>2022-04-04 13:44:31 +0100
committerTomas Mraz <tomas@openssl.org>2022-04-07 11:45:23 +0200
commite12bee78d4e64da2176dd9a7ec19ec680dd3bebf (patch)
tree5fa59048239802699823ae7fee3e107fba6d3ae4 /doc
parentffc22e038e92d5dd956362fa48babd03cff202d1 (diff)
Document SSL_CTX_get_ssl_method
Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/18037)
Diffstat (limited to 'doc')
-rw-r--r--doc/man3/SSL_CTX_set_ssl_version.pod12
1 files changed, 10 insertions, 2 deletions
diff --git a/doc/man3/SSL_CTX_set_ssl_version.pod b/doc/man3/SSL_CTX_set_ssl_version.pod
index ba2b816f38..d1885d0318 100644
--- a/doc/man3/SSL_CTX_set_ssl_version.pod
+++ b/doc/man3/SSL_CTX_set_ssl_version.pod
@@ -2,7 +2,7 @@
=head1 NAME
-SSL_CTX_set_ssl_version, SSL_set_ssl_method, SSL_get_ssl_method
+SSL_CTX_set_ssl_version, SSL_CTX_get_ssl_method, SSL_set_ssl_method, SSL_get_ssl_method
- choose a new TLS/SSL method
=head1 SYNOPSIS
@@ -10,6 +10,8 @@ SSL_CTX_set_ssl_version, SSL_set_ssl_method, SSL_get_ssl_method
#include <openssl/ssl.h>
int SSL_CTX_set_ssl_version(SSL_CTX *ctx, const SSL_METHOD *method);
+ const SSL_METHOD *SSL_CTX_get_ssl_method(const SSL_CTX *ctx);
+
int SSL_set_ssl_method(SSL *s, const SSL_METHOD *method);
const SSL_METHOD *SSL_get_ssl_method(const SSL *ssl);
@@ -22,10 +24,13 @@ which are reset to the default values. SSL objects already created from this
SSL_CTX with L<SSL_new(3)> are not affected, except when L<SSL_clear(3)> is
being called, as described below.
+SSL_CTX_get_ssl_method() returns the SSL_METHOD which was used to construct the
+SSL_CTX.
+
SSL_set_ssl_method() sets a new TLS/SSL B<method> for a particular B<ssl>
object. It may be reset, when SSL_clear() is called.
-SSL_get_ssl_method() returns a function pointer to the TLS/SSL method
+SSL_get_ssl_method() returns a pointer to the TLS/SSL method
set in B<ssl>.
=head1 NOTES
@@ -59,6 +64,9 @@ The operation succeeded.
=back
+SSL_CTX_get_ssl_method() and SSL_get_ssl_method() always return non-NULL
+pointers.
+
=head1 SEE ALSO
L<SSL_CTX_new(3)>, L<SSL_new(3)>,