summaryrefslogtreecommitdiff
path: root/deps/openssl/openssl/ssl/t1_meth.c
diff options
context:
space:
mode:
Diffstat (limited to 'deps/openssl/openssl/ssl/t1_meth.c')
-rw-r--r--deps/openssl/openssl/ssl/t1_meth.c22
1 files changed, 5 insertions, 17 deletions
diff --git a/deps/openssl/openssl/ssl/t1_meth.c b/deps/openssl/openssl/ssl/t1_meth.c
index 53c807de28..6ce7c0bbf5 100644
--- a/deps/openssl/openssl/ssl/t1_meth.c
+++ b/deps/openssl/openssl/ssl/t1_meth.c
@@ -60,28 +60,16 @@
#include <openssl/objects.h>
#include "ssl_locl.h"
+static const SSL_METHOD *tls1_get_method(int ver);
static const SSL_METHOD *tls1_get_method(int ver)
{
- if (ver == TLS1_2_VERSION)
- return TLSv1_2_method();
- if (ver == TLS1_1_VERSION)
- return TLSv1_1_method();
if (ver == TLS1_VERSION)
- return TLSv1_method();
- return NULL;
+ return(TLSv1_method());
+ else
+ return(NULL);
}
-IMPLEMENT_tls_meth_func(TLS1_2_VERSION, TLSv1_2_method,
- ssl3_accept,
- ssl3_connect,
- tls1_get_method)
-
-IMPLEMENT_tls_meth_func(TLS1_1_VERSION, TLSv1_1_method,
- ssl3_accept,
- ssl3_connect,
- tls1_get_method)
-
-IMPLEMENT_tls_meth_func(TLS1_VERSION, TLSv1_method,
+IMPLEMENT_tls1_meth_func(TLSv1_method,
ssl3_accept,
ssl3_connect,
tls1_get_method)