Merge branch 'master' of github.com:cyassl/cyassl
This commit is contained in:
commit
78ea389021
@ -1931,12 +1931,12 @@ int ParseCertRelative(DecodedCert* cert, word32 inSz, int type, int verify,
|
|||||||
return ASN_SIG_OID_E;
|
return ASN_SIG_OID_E;
|
||||||
|
|
||||||
if (verify && type != CA_TYPE) {
|
if (verify && type != CA_TYPE) {
|
||||||
Signer* signer = GetCA(signers, cert->issuerHash);
|
Signer* ca = GetCA(signers, cert->issuerHash);
|
||||||
|
|
||||||
if (signer) {
|
if (ca) {
|
||||||
/* try to confirm/verify signature */
|
/* try to confirm/verify signature */
|
||||||
if (!ConfirmSignature(cert, signers->publicKey,
|
if (!ConfirmSignature(cert, ca->publicKey,
|
||||||
signers->pubKeySize, signers->keyOID))
|
ca->pubKeySize, ca->keyOID))
|
||||||
return ASN_SIG_CONFIRM_E;
|
return ASN_SIG_CONFIRM_E;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@ -2373,7 +2373,6 @@ void InitCert(Cert* cert)
|
|||||||
cert->bodySz = 0;
|
cert->bodySz = 0;
|
||||||
cert->keyType = RSA_KEY;
|
cert->keyType = RSA_KEY;
|
||||||
XMEMSET(cert->serial, 0, SERIAL_SIZE);
|
XMEMSET(cert->serial, 0, SERIAL_SIZE);
|
||||||
cert->serialSz = 0;
|
|
||||||
|
|
||||||
cert->issuer.country[0] = '\0';
|
cert->issuer.country[0] = '\0';
|
||||||
cert->issuer.state[0] = '\0';
|
cert->issuer.state[0] = '\0';
|
||||||
|
Loading…
Reference in New Issue
Block a user