forked from wolfSSL/wolfssl
send no certificate alert on SSLv3 if certificate size is 0.
This commit is contained in:
committed by
Jacob Barthelmeh
parent
b40218f7f4
commit
8336e02931
@@ -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) {
|
||||
|
Reference in New Issue
Block a user