summaryrefslogtreecommitdiffstats
path: root/ssl/s23_meth.c
diff options
context:
space:
mode:
Diffstat (limited to 'ssl/s23_meth.c')
-rw-r--r--ssl/s23_meth.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/ssl/s23_meth.c b/ssl/s23_meth.c
index 950d9aa..40eae0f 100644
--- a/ssl/s23_meth.c
+++ b/ssl/s23_meth.c
@@ -60,8 +60,8 @@
#include <openssl/objects.h>
#include "ssl_locl.h"
-static SSL_METHOD *ssl23_get_method(int ver);
-static SSL_METHOD *ssl23_get_method(int ver)
+static const SSL_METHOD *ssl23_get_method(int ver);
+static const SSL_METHOD *ssl23_get_method(int ver)
{
#ifndef OPENSSL_NO_SSL2
if (ver == SSL2_VERSION)
@@ -76,6 +76,10 @@ static SSL_METHOD *ssl23_get_method(int ver)
#ifndef OPENSSL_NO_TLS1
if (ver == TLS1_VERSION)
return(TLSv1_method());
+ else if (ver == TLS1_1_VERSION)
+ return(TLSv1_1_method());
+ else if (ver == TLS1_2_VERSION)
+ return(TLSv1_2_method());
else
#endif
return(NULL);
OpenPOWER on IntegriCloud