summaryrefslogtreecommitdiffstats
path: root/ssl
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2014-07-07 13:00:07 +0100
committerDr. Stephen Henson <steve@openssl.org>2014-07-07 13:00:07 +0100
commita0fdc4c6d657538b6a2c0b84e8bf06ab676854c4 (patch)
tree619cbfd593ded424e0a71740f18a82595cbda5e8 /ssl
parentb5def0243efe9d6d606b60222625763fd7ac5ed0 (diff)
Fix ECC SSLv2 exclusion on OpenSSL 0.9.8.
Diffstat (limited to 'ssl')
-rw-r--r--ssl/s23_lib.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/ssl/s23_lib.c b/ssl/s23_lib.c
index 9ec6d14ddc..ad5cee09fa 100644
--- a/ssl/s23_lib.c
+++ b/ssl/s23_lib.c
@@ -113,11 +113,7 @@ int ssl23_put_cipher_by_char(const SSL_CIPHER *c, unsigned char *p)
/* We can write SSLv2 and SSLv3 ciphers */
/* but no ECC ciphers */
- if (c->algorithm_mkey == SSL_kECDHr ||
- c->algorithm_mkey == SSL_kECDHe ||
- c->algorithm_mkey == SSL_kEECDH ||
- c->algorithm_auth == SSL_aECDH ||
- c->algorithm_auth == SSL_aECDSA)
+ if (c->algorithms & (SSL_ECDH|SSL_aECDSA))
return 0;
if (p != NULL)
{