Use client version when deciding which cipher suites to disable.
authorDr. Stephen Henson <steve@openssl.org>
Wed, 26 Dec 2012 17:09:39 +0000 (17:09 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Wed, 26 Dec 2012 17:09:39 +0000 (17:09 +0000)
(backport from HEAD)

ssl/t1_lib.c

index 31cce72e0e71cc9bf360311e395a5929de3b9cc6..984d4bbf7a3579dec48f29eabbe9573b78c98ff8 100644 (file)
@@ -957,7 +957,7 @@ void ssl_set_client_disabled(SSL *s)
        c->mask_a = 0;
        c->mask_k = 0;
        /* If less than TLS 1.2 don't allow TLS 1.2 only ciphers */
-       if (TLS1_get_version(s) < TLS1_2_VERSION)
+       if (TLS1_get_client_version(s) < TLS1_2_VERSION)
                c->mask_ssl = SSL_TLSV1_2;
        else
                c->mask_ssl = 0;