Change to send certificate message on SSLv3 even though certificate size is 0.

This commit is contained in:
Go Hosohara
2017-07-27 16:46:27 +09:00
committed by Jacob Barthelmeh
parent 21a14403c6
commit 3d0c850e10

View File

@ -17417,7 +17417,7 @@ void PickHashSigAlgo(WOLFSSL* ssl, const byte* hashSigAlgo,
if (ssl->buffers.certificate && ssl->buffers.certificate->buffer && if (ssl->buffers.certificate && ssl->buffers.certificate->buffer &&
ssl->buffers.key && ssl->buffers.key->buffer) ssl->buffers.key && ssl->buffers.key->buffer)
ssl->options.sendVerify = SEND_CERT; ssl->options.sendVerify = SEND_CERT;
else if (IsTLS(ssl)) else
ssl->options.sendVerify = SEND_BLANK_CERT; ssl->options.sendVerify = SEND_BLANK_CERT;
if (IsEncryptionOn(ssl, 0)) if (IsEncryptionOn(ssl, 0))