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 */
|
return 0; /* not needed */
|
||||||
|
|
||||||
if (ssl->options.sendVerify == SEND_BLANK_CERT) {
|
if (ssl->options.sendVerify == SEND_BLANK_CERT) {
|
||||||
certSz = 0;
|
SendAlert(ssl, alert_warning, no_certificate);
|
||||||
certChainSz = 0;
|
return 0;
|
||||||
headerSz = CERT_HEADER_SZ;
|
|
||||||
length = CERT_HEADER_SZ;
|
|
||||||
listSz = 0;
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (!ssl->buffers.certificate) {
|
if (!ssl->buffers.certificate) {
|
||||||
|
Reference in New Issue
Block a user