Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:msmeissn:openssl1
openvpn
openvpn-tls12.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File openvpn-tls12.patch of Package openvpn
Index: openvpn-2.0.9/ssl.c =================================================================== --- openvpn-2.0.9.orig/ssl.c +++ openvpn-2.0.9/ssl.c @@ -751,7 +751,7 @@ init_ssl (const struct options *options) if (options->tls_server) { - ctx = SSL_CTX_new (TLSv1_server_method ()); + ctx = SSL_CTX_new (SSLv23_server_method ()); if (ctx == NULL) msg (M_SSLERR, "SSL_CTX_new TLSv1_server_method"); @@ -772,11 +772,13 @@ init_ssl (const struct options *options) } else /* if client */ { - ctx = SSL_CTX_new (TLSv1_client_method ()); + ctx = SSL_CTX_new (SSLv23_client_method ()); if (ctx == NULL) msg (M_SSLERR, "SSL_CTX_new TLSv1_client_method"); } + SSL_CTX_set_options(ctx, SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3); + /* Set SSL options */ SSL_CTX_set_session_cache_mode (ctx, SSL_SESS_CACHE_OFF); SSL_CTX_set_options (ctx, SSL_OP_SINGLE_DH_USE);
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor