From: Richard Levitte Date: Wed, 14 Mar 2012 12:38:55 +0000 (+0000) Subject: cipher should only be set to PSK if JPAKE is used. X-Git-Tag: OpenSSL_1_0_0i~12 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9ad1b440aefa41b50851af9b9df8e4106a88a56d;p=oweals%2Fopenssl.git cipher should only be set to PSK if JPAKE is used. --- diff --git a/apps/s_client.c b/apps/s_client.c index 53be0f8f82..fe375d0fe3 100644 --- a/apps/s_client.c +++ b/apps/s_client.c @@ -749,14 +749,13 @@ bad: goto end; } psk_identity = "JPAKE"; + if (cipher) + { + BIO_printf(bio_err, "JPAKE sets cipher to PSK\n"); + goto end; + } + cipher = "PSK"; } - - if (cipher) - { - BIO_printf(bio_err, "JPAKE sets cipher to PSK\n"); - goto end; - } - cipher = "PSK"; #endif OpenSSL_add_ssl_algorithms();