Cosmetic change
Reviewed-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/2339)
This commit is contained in:
parent
f1a5939f17
commit
3f4bf115a1
1 changed files with 3 additions and 6 deletions
|
@ -1584,12 +1584,9 @@ MSG_PROCESS_RETURN tls_process_client_hello(SSL *s, PACKET *pkt)
|
|||
ciphers = NULL;
|
||||
|
||||
/* check if some cipher was preferred by call back */
|
||||
pref_cipher =
|
||||
pref_cipher ? pref_cipher : ssl3_choose_cipher(s,
|
||||
s->
|
||||
session->ciphers,
|
||||
SSL_get_ciphers
|
||||
(s));
|
||||
if (pref_cipher == NULL)
|
||||
pref_cipher = ssl3_choose_cipher(s, s->session->ciphers,
|
||||
SSL_get_ciphers(s));
|
||||
if (pref_cipher == NULL) {
|
||||
al = SSL_AD_HANDSHAKE_FAILURE;
|
||||
SSLerr(SSL_F_TLS_PROCESS_CLIENT_HELLO, SSL_R_NO_SHARED_CIPHER);
|
||||
|
|
Loading…
Reference in a new issue