]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Disable export ciphers by default for OpenSSL builds.
authorSteffan Karger <steffan@karger.me>
Wed, 1 Jan 2014 20:10:26 +0000 (21:10 +0100)
committerGert Doering <gert@greenie.muc.de>
Sun, 5 Jan 2014 17:41:54 +0000 (18:41 +0100)
Export ciphers are deliberately weak ciphers, and not fully supported by
OpenVPN since ephemeral RSA support has been removed a few commits ago.
This commit removes them from the default cipher list to avoid confusion.

PolarSSL does not support export ciphers, so no action required there.

Signed-off-by: Steffan Karger <steffan@karger.me>
Acked-by: Arne Schwabe <arne@rfc2549.org>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <1388607026-12297-7-git-send-email-steffan@karger.me>
URL: http://article.gmane.org/gmane.network.openvpn.devel/8146
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/ssl_openssl.c

index 7ad7eabefec8a420be6855baae27d4c632e6c979..f079652667920f6ccd2966797cc3e1cf664b870c 100644 (file)
@@ -219,7 +219,9 @@ tls_ctx_restrict_ciphers(struct tls_root_ctx *ctx, const char *ciphers)
 {
   if (ciphers == NULL)
     {
-      /* Nothing to do */
+      /* Use sane default */
+      if(!SSL_CTX_set_cipher_list(ctx->ctx, "DEFAULT:!EXP"))
+        msg(M_SSLERR, "Failed to set default TLS cipher list.");
       return;
     }