PR:Don't use the SSL 2.0 Client Hello format if SSL 2.0 is disabled

with the SSL_OP_NO_SSLv2 option.
This commit is contained in:
Bodo Möller
2005-05-11 18:26:08 +00:00
parent 973fbfe3a3
commit 00c1c6cb28
7 changed files with 180 additions and 63 deletions

View File

@@ -567,7 +567,7 @@ static int ssl3_client_hello(SSL *s)
}
/* Ciphers supported */
i=ssl_cipher_list_to_bytes(s,SSL_get_ciphers(s),&(p[2]));
i=ssl_cipher_list_to_bytes(s,SSL_get_ciphers(s),&(p[2]),0);
if (i == 0)
{
SSLerr(SSL_F_SSL3_CLIENT_HELLO,SSL_R_NO_CIPHERS_AVAILABLE);