diff --git a/include/openssl/ssl.h b/include/openssl/ssl.h index d9c8bf6b..fcceb89a 100644 --- a/include/openssl/ssl.h +++ b/include/openssl/ssl.h @@ -3162,6 +3162,8 @@ OPENSSL_EXPORT const SSL_METHOD *DTLSv1_2_method(void); /* These client- and server-specific methods call their corresponding generic * methods. */ +OPENSSL_EXPORT const SSL_METHOD *TLS_server_method(void); +OPENSSL_EXPORT const SSL_METHOD *TLS_client_method(void); OPENSSL_EXPORT const SSL_METHOD *SSLv23_server_method(void); OPENSSL_EXPORT const SSL_METHOD *SSLv23_client_method(void); OPENSSL_EXPORT const SSL_METHOD *SSLv3_server_method(void); diff --git a/ssl/tls_method.c b/ssl/tls_method.c index 923541b8..61dc9f62 100644 --- a/ssl/tls_method.c +++ b/ssl/tls_method.c @@ -207,3 +207,11 @@ const SSL_METHOD *SSLv23_server_method(void) { const SSL_METHOD *SSLv23_client_method(void) { return SSLv23_method(); } + +const SSL_METHOD *TLS_server_method(void) { + return TLS_method(); +} + +const SSL_METHOD *TLS_client_method(void) { + return TLS_method(); +}