X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=ssl%2Ft1_srvr.c;h=a1858cf1b07f82677b5380458a0a170dd16e2d7e;hb=ef908777218bd4a362dbe9cebb8e18fa8ab384cf;hp=b75636abba91718132dfa3b0a176078f5b90d865;hpb=f3b656b246f45a0159aea9c38634a9f72f98d31d;p=oweals%2Fopenssl.git diff --git a/ssl/t1_srvr.c b/ssl/t1_srvr.c index b75636abba..a1858cf1b0 100644 --- a/ssl/t1_srvr.c +++ b/ssl/t1_srvr.c @@ -64,17 +64,33 @@ #include #include -static SSL_METHOD *tls1_get_server_method(int ver); -static SSL_METHOD *tls1_get_server_method(int ver) +static const SSL_METHOD *tls1_get_server_method(int ver); +static const SSL_METHOD *tls1_get_server_method(int ver) { + if (ver == TLS1_2_VERSION) + return TLSv1_2_server_method(); + if (ver == TLS1_1_VERSION) + return TLSv1_1_server_method(); if (ver == TLS1_VERSION) - return(TLSv1_server_method()); - else - return(NULL); + return TLSv1_server_method(); + return NULL; } -IMPLEMENT_tls1_meth_func(TLSv1_server_method, +IMPLEMENT_tls_meth_func(TLS1_2_VERSION, TLSv1_2_server_method, ssl3_accept, ssl_undefined_function, - tls1_get_server_method) + tls1_get_server_method, + TLSv1_2_enc_data) + +IMPLEMENT_tls_meth_func(TLS1_1_VERSION, TLSv1_1_server_method, + ssl3_accept, + ssl_undefined_function, + tls1_get_server_method, + TLSv1_1_enc_data) + +IMPLEMENT_tls_meth_func(TLS1_VERSION, TLSv1_server_method, + ssl3_accept, + ssl_undefined_function, + tls1_get_server_method, + TLSv1_enc_data)