]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
login: Now properly disable SSLv2 support.
authorTimo Sirainen <tss@iki.fi>
Tue, 2 Feb 2010 13:00:15 +0000 (15:00 +0200)
committerTimo Sirainen <tss@iki.fi>
Tue, 2 Feb 2010 13:00:15 +0000 (15:00 +0200)
--HG--
branch : HEAD

src/login-common/ssl-proxy-openssl.c

index 5be6f9e5874542a726591f56f24ab37647c4f841..26330ba2706e56c4d3474a99e69c3f99ed849b9d 100644 (file)
@@ -917,7 +917,7 @@ ssl_proxy_ctx_init(SSL_CTX *ssl_ctx, const struct login_settings *set)
        X509_STORE *store;
        STACK_OF(X509_NAME) *xnames = NULL;
 
-       SSL_CTX_set_options(ssl_ctx, SSL_OP_ALL);
+       SSL_CTX_set_options(ssl_ctx, SSL_OP_ALL | SSL_OP_NO_SSLv2);
        if (*set->ssl_ca != '\0') {
                /* set trusted CA certs */
                store = SSL_CTX_get_cert_store(ssl_ctx);