diff options
author | John Marino <marino@FreeBSD.org> | 2016-09-12 02:30:43 +0000 |
---|---|---|
committer | John Marino <marino@FreeBSD.org> | 2016-09-12 02:30:43 +0000 |
commit | 73620ebd0469b71c7533c3ee248c355cfcf4faf9 (patch) | |
tree | fb24d69f8fadc20fd6965549346e4cac9295daac /www/httest/files/patch-src_ssl__module.c | |
parent | net-mgmt/snmp++: Document SSL build requirement, patch for LibreSSL (diff) |
www/httest: Document SSL requirement and support LibreSSL
Approved by: SSL blanket
Notes
Notes:
svn path=/head/; revision=421897
Diffstat (limited to 'www/httest/files/patch-src_ssl__module.c')
-rw-r--r-- | www/httest/files/patch-src_ssl__module.c | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/www/httest/files/patch-src_ssl__module.c b/www/httest/files/patch-src_ssl__module.c new file mode 100644 index 000000000000..d48f481b427e --- /dev/null +++ b/www/httest/files/patch-src_ssl__module.c @@ -0,0 +1,46 @@ +--- src/ssl_module.c.orig 2015-03-16 15:46:05 UTC ++++ src/ssl_module.c +@@ -349,7 +349,7 @@ static void ssl_message_trace(int write_ + case DTLS1_VERSION: + str_version = "DTLS 1.0"; + break; +-#if (OPENSSL_VERSION_NUMBER >= 0x1000100fL) ++#if OPENSSL_VERSION_NUMBER >= 0x1000100fL && defined(DTLS1_BAD_VER) + case DTLS1_BAD_VER: + str_version = "DTLS 1.0 (bad)"; + break; +@@ -421,7 +421,7 @@ static void ssl_message_trace(int write_ + version == TLS1_1_VERSION || + #endif + version == DTLS1_VERSION +-#if (OPENSSL_VERSION_NUMBER >= 0x1000100fL) ++#if OPENSSL_VERSION_NUMBER >= 0x1000100fL && defined(DTLS1_BAD_VER) + || version == DTLS1_BAD_VER + #endif + ) { +@@ -740,10 +740,12 @@ static int worker_set_client_method(work + config->meth = SSLv2_client_method(); + } + #endif ++#ifndef OPENSSL_NO_SSL3 + else if (strcasecmp(sslstr, "SSL3") == 0) { + is_ssl = 1; + config->meth = SSLv3_client_method(); + } ++#endif + else if (strcasecmp(sslstr, "TLS1") == 0) { + is_ssl = 1; + config->meth = TLSv1_client_method(); +@@ -787,10 +789,12 @@ static int worker_set_server_method(work + config->meth = SSLv2_server_method(); + } + #endif ++#ifndef OPENSSL_NO_SSL3 + else if (strcasecmp(sslstr, "SSL3") == 0) { + is_ssl = 1; + config->meth = SSLv3_server_method(); + } ++#endif + else if (strcasecmp(sslstr, "TLS1") == 0) { + is_ssl = 1; + config->meth = TLSv1_server_method(); |