diff options
| author | Natanael Copa <ncopa@alpinelinux.org> | 2018-11-06 17:06:38 +0000 |
|---|---|---|
| committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-11-07 16:46:15 +0000 |
| commit | 9ed3649c70ce2dec90f502ec09d13475ee09feb3 (patch) | |
| tree | ac3363c4b845373153537842edc4c3a8fbdf2bfc /testing/prayer/disable_ssl3.patch | |
| parent | 9d88ce130db0c33108802cd61cb032cc26cec440 (diff) | |
| download | aports-9ed3649c70ce2dec90f502ec09d13475ee09feb3.tar.bz2 aports-9ed3649c70ce2dec90f502ec09d13475ee09feb3.tar.xz | |
unmaintained/preayer: moved from testing
appears to be dead upstream
Diffstat (limited to 'testing/prayer/disable_ssl3.patch')
| -rw-r--r-- | testing/prayer/disable_ssl3.patch | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/testing/prayer/disable_ssl3.patch b/testing/prayer/disable_ssl3.patch deleted file mode 100644 index 35f74e5121..0000000000 --- a/testing/prayer/disable_ssl3.patch +++ /dev/null @@ -1,58 +0,0 @@ -Description: Disable SSL 3.0 on client as well as server side -Author: Magnus Holmgren <holmgren@debian.org> - ---- a/lib/ssl.c -+++ b/lib/ssl.c -@@ -387,12 +387,16 @@ void ssl_context_init(struct ssl_config - SSL_load_error_strings(); - - /* Set up client context: only used by accountd */ -- client_ctx = SSL_CTX_new(SSLv3_client_method()); -+ client_ctx = SSL_CTX_new(SSLv23_client_method()); - SSL_CTX_set_session_cache_mode(client_ctx, SSL_SESS_CACHE_BOTH); - SSL_CTX_set_info_callback(client_ctx, info_callback); - #ifdef SSL_MODE_AUTO_RETRY - SSL_CTX_set_mode(client_ctx, SSL_MODE_AUTO_RETRY); - #endif -+ /* SSLv2 now obsolete */ -+ SSL_CTX_set_options(client_ctx, SSL_OP_NO_SSLv2); -+ /* SSLv3 now also obsolete */ -+ SSL_CTX_set_options(client_ctx, SSL_OP_NO_SSLv3); - - if (SSL_CTX_need_tmp_RSA(client_ctx)) - SSL_CTX_set_tmp_rsa_callback(client_ctx, rsa_callback); -@@ -420,6 +424,8 @@ void ssl_context_init(struct ssl_config - - /* SSLv2 now obsolete */ - SSL_CTX_set_options(server_ctx, SSL_OP_NO_SSLv2); -+ /* SSLv3 now also obsolete */ -+ SSL_CTX_set_options(server_ctx, SSL_OP_NO_SSLv3); - - /* Start off with the session cache disabled */ - SSL_CTX_set_session_cache_mode(server_ctx, SSL_SESS_CACHE_OFF); -@@ -625,6 +631,12 @@ void *ssl_start_server(int fd, unsigned - case TLS1_VERSION: - ver = "TLSv1"; - break; -+ case TLS1_1_VERSION: -+ ver = "TLSv1.1"; -+ break; -+ case TLS1_2_VERSION: -+ ver = "TLSv1.2"; -+ break; - default: - ver = "UNKNOWN"; - } -@@ -678,6 +690,12 @@ void *ssl_start_client(int fd, unsigned - case TLS1_VERSION: - ver = "TLSv1"; - break; -+ case TLS1_1_VERSION: -+ ver = "TLSv1.1"; -+ break; -+ case TLS1_2_VERSION: -+ ver = "TLSv1.2"; -+ break; - default: - ver = "UNKNOWN"; - } |
