Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- ssl_engine_init.c.orig 2014-10-20 14:41:10.914064521 +0000
- +++ ssl_engine_init.c 2014-10-20 14:42:48.969070860 +0000
- @@ -481,33 +481,10 @@
- ap_log_error(APLOG_MARK, APLOG_TRACE3, 0, s,
- "Creating new SSL context (protocols: %s)", cp);
- - if (protocol == SSL_PROTOCOL_SSLV3) {
- - method = mctx->pkp ?
- - SSLv3_client_method() : /* proxy */
- - SSLv3_server_method(); /* server */
- - }
- - else if (protocol == SSL_PROTOCOL_TLSV1) {
- - method = mctx->pkp ?
- - TLSv1_client_method() : /* proxy */
- - TLSv1_server_method(); /* server */
- - }
- -#ifdef HAVE_TLSV1_X
- - else if (protocol == SSL_PROTOCOL_TLSV1_1) {
- - method = mctx->pkp ?
- - TLSv1_1_client_method() : /* proxy */
- - TLSv1_1_server_method(); /* server */
- - }
- - else if (protocol == SSL_PROTOCOL_TLSV1_2) {
- - method = mctx->pkp ?
- - TLSv1_2_client_method() : /* proxy */
- - TLSv1_2_server_method(); /* server */
- - }
- -#endif
- - else { /* For multiple protocols, we need a flexible method */
- - method = mctx->pkp ?
- - SSLv23_client_method() : /* proxy */
- - SSLv23_server_method(); /* server */
- - }
- + method = mctx->pkp ?
- + SSLv23_client_method() : /* proxy */
- + SSLv23_server_method(); /* server */
- +
- ctx = SSL_CTX_new(method);
- mctx->ssl_ctx = ctx;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement