From: Hugo Landau Date: Mon, 4 Apr 2022 12:44:31 +0000 (+0100) Subject: Document SSL_CTX_get_ssl_method X-Git-Tag: openssl-3.2.0-alpha1~2779 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e12bee78d4e64da2176dd9a7ec19ec680dd3bebf;p=thirdparty%2Fopenssl.git Document SSL_CTX_get_ssl_method Reviewed-by: Richard Levitte Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/18037) --- diff --git a/doc/man3/SSL_CTX_set_ssl_version.pod b/doc/man3/SSL_CTX_set_ssl_version.pod index ba2b816f384..d1885d0318d 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 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 are not affected, except when L 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 for a particular B 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. =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, L, diff --git a/util/missingssl.txt b/util/missingssl.txt index 6adf6c51178..8a7e2682033 100644 --- a/util/missingssl.txt +++ b/util/missingssl.txt @@ -9,7 +9,6 @@ SSL_CTX_SRP_CTX_init(3) SSL_CTX_get0_certificate(3) SSL_CTX_get0_ctlog_store(3) SSL_CTX_get0_privatekey(3) -SSL_CTX_get_ssl_method(3) SSL_CTX_set0_ctlog_store(3) SSL_CTX_set_client_cert_engine(3) SSL_CTX_set_not_resumable_session_callback(3)