]> git.kaiwu.me - nginx.git/commitdiff
SSL: guard use of SSL_OP_MSIE_SSLV2_RSA_PADDING.
authorPiotr Sikora <piotr@cloudflare.com>
Mon, 16 Sep 2013 21:24:38 +0000 (14:24 -0700)
committerPiotr Sikora <piotr@cloudflare.com>
Mon, 16 Sep 2013 21:24:38 +0000 (14:24 -0700)
This option had no effect since 0.9.7h / 0.9.8b and it was removed
in recent OpenSSL.

Signed-off-by: Piotr Sikora <piotr@cloudflare.com>
src/event/ngx_event_openssl.c

index f2419e46622b48ee1b37440c2b3a003e15120ba3..fedb604de9b55c6e99e7ce188113e5e0772d8966 100644 (file)
@@ -185,8 +185,10 @@ ngx_ssl_create(ngx_ssl_t *ssl, ngx_uint_t protocols, void *data)
     SSL_CTX_set_options(ssl->ctx, SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG);
     SSL_CTX_set_options(ssl->ctx, SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER);
 
+#ifdef SSL_OP_MSIE_SSLV2_RSA_PADDING
     /* this option allow a potential SSL 2.0 rollback (CAN-2005-2969) */
     SSL_CTX_set_options(ssl->ctx, SSL_OP_MSIE_SSLV2_RSA_PADDING);
+#endif
 
     SSL_CTX_set_options(ssl->ctx, SSL_OP_SSLEAY_080_CLIENT_DH_BUG);
     SSL_CTX_set_options(ssl->ctx, SSL_OP_TLS_D5_BUG);