Merge pull request #3869 from SparkiDev/asn1_template

ASN1 Template: stricter and simpler DER/BER parsing/construction
This commit is contained in:
John Safranek
2021-08-19 12:47:04 -07:00
committed by GitHub
11 changed files with 13301 additions and 1349 deletions
+12499 -1212
View File
File diff suppressed because it is too large Load Diff
+2 -2
View File
@@ -4314,8 +4314,8 @@ static int wc_PKCS7_ParseSignerInfo(PKCS7* pkcs7, byte* in, word32 inSz,
idx += length;
}
/* Get digestEncryptionAlgorithm */
if (ret == 0 && GetAlgoId(in, &idx, &sigOID, oidSigType, inSz) < 0) {
/* Get digestEncryptionAlgorithm - key type or signature type */
if (ret == 0 && GetAlgoId(in, &idx, &sigOID, oidIgnoreType, inSz) < 0) {
ret = ASN_PARSE_E;
}