Fix ECC SSLv2 exclusion on OpenSSL 0.9.8.
This commit is contained in:
parent
b5def0243e
commit
a0fdc4c6d6
@ -113,11 +113,7 @@ int ssl23_put_cipher_by_char(const SSL_CIPHER *c, unsigned char *p)
|
|||||||
|
|
||||||
/* We can write SSLv2 and SSLv3 ciphers */
|
/* We can write SSLv2 and SSLv3 ciphers */
|
||||||
/* but no ECC ciphers */
|
/* but no ECC ciphers */
|
||||||
if (c->algorithm_mkey == SSL_kECDHr ||
|
if (c->algorithms & (SSL_ECDH|SSL_aECDSA))
|
||||||
c->algorithm_mkey == SSL_kECDHe ||
|
|
||||||
c->algorithm_mkey == SSL_kEECDH ||
|
|
||||||
c->algorithm_auth == SSL_aECDH ||
|
|
||||||
c->algorithm_auth == SSL_aECDSA)
|
|
||||||
return 0;
|
return 0;
|
||||||
if (p != NULL)
|
if (p != NULL)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user