cipher should only be set to PSK if JPAKE is used.

This commit is contained in:
Richard Levitte 2012-03-14 12:38:55 +00:00
parent 9275ad321f
commit 9ad1b440ae

View File

@ -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();