fix sanity check for DHE-PSK cipher suite handshake

This commit is contained in:
John Safranek 2014-12-04 10:27:00 -08:00
parent d3eec77294
commit a9d9ff8b58

View File

@ -4834,6 +4834,7 @@ static int SanityCheckMsgReceived(CYASSL* ssl, byte type)
if (ssl->msgsReceived.got_certificate == 0) { if (ssl->msgsReceived.got_certificate == 0) {
if (ssl->specs.kea == psk_kea || if (ssl->specs.kea == psk_kea ||
ssl->specs.kea == dhe_psk_kea ||
ssl->options.usingAnon_cipher) { ssl->options.usingAnon_cipher) {
CYASSL_MSG("No Cert required"); CYASSL_MSG("No Cert required");
} else { } else {