Add TLS_{client,server}_method.

Inch towards OpenSSL 1.1.0 compatibility.

BUG=91

Change-Id: Ia45b6bdb5114d0891fdffdef0b5868920324ecec
Reviewed-on: https://boringssl-review.googlesource.com/9140
Commit-Queue: David Benjamin <davidben@google.com>
Reviewed-by: Adam Langley <agl@google.com>
This commit is contained in:
David Benjamin 2016-08-05 10:41:07 -04:00 committed by Adam Langley
parent 9305a13252
commit a9c3bf142e
2 changed files with 10 additions and 0 deletions

View File

@ -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);

View File

@ -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();
}