send no certificate alert on SSLv3 if certificate size is 0.

This commit is contained in:
Go Hosohara 2017-07-28 16:24:42 +09:00 committed by Jacob Barthelmeh
parent b40218f7f4
commit 8336e02931
1 changed files with 2 additions and 5 deletions

View File

@ -13205,11 +13205,8 @@ int SendCertificate(WOLFSSL* ssl)
return 0; /* not needed */
if (ssl->options.sendVerify == SEND_BLANK_CERT) {
certSz = 0;
certChainSz = 0;
headerSz = CERT_HEADER_SZ;
length = CERT_HEADER_SZ;
listSz = 0;
SendAlert(ssl, alert_warning, no_certificate);
return 0;
}
else {
if (!ssl->buffers.certificate) {