]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Don't issue warning for 'translate to self' tls-ciphers
authorSteffan Karger <steffan@karger.me>
Thu, 3 Jul 2014 21:47:45 +0000 (23:47 +0200)
committerGert Doering <gert@greenie.muc.de>
Mon, 7 Jul 2014 20:29:08 +0000 (22:29 +0200)
All cipher suite names supplied through --tls-cipher are translated by
OpenVPN to IANA names, to get OpenSSL and PolarSSL configuration files
compatible. OpenSSL however supports cipher suite group names, like
'DEFAULT', 'HIGH', or 'ECDH'. To make OpenVPN not complain about these,
entries translating these to themselves were added to the translation
table. However, to make OpenVPN not still complain, the deprecated-name
check has to be reversed from 'if this is a deprecated name then complain'
to 'if this is not a iana name, then complain'. Which this commit does.

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

index c9d2d26de54ef6d219cb9312842c113fa35a2dd9..adf3ae6fce46b7e5fca3a14402e42c9c7ce28e7a 100644 (file)
@@ -270,7 +270,8 @@ tls_ctx_restrict_ciphers(struct tls_root_ctx *ctx, const char *ciphers)
           current_cipher_len = strlen(current_cipher);
 
          if (end_of_cipher - begin_of_cipher == current_cipher_len &&
-             0 == memcmp (&ciphers[begin_of_cipher], cipher_pair->openssl_name, end_of_cipher - begin_of_cipher))
+             0 != memcmp (&ciphers[begin_of_cipher], cipher_pair->iana_name,
+                 end_of_cipher - begin_of_cipher))
            {
              // Non-IANA name used, show warning
              msg (M_WARN, "Deprecated TLS cipher name '%s', please use IANA name '%s'", cipher_pair->openssl_name, cipher_pair->iana_name);