mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-04 21:24:43 +02:00
fix bug where unknown OIDs were treated as parsing errors rather than ignored
This commit is contained in:
@@ -1144,9 +1144,9 @@ WOLFSSL_LOCAL int GetObjectId(const byte* input, word32* inOutIdx, word32* oid,
|
|||||||
if (oidType != ignoreType) {
|
if (oidType != ignoreType) {
|
||||||
checkOid = OidFromId(*oid, oidType, &checkOidSz);
|
checkOid = OidFromId(*oid, oidType, &checkOidSz);
|
||||||
|
|
||||||
if (checkOid == NULL ||
|
if (checkOid != NULL &&
|
||||||
checkOidSz != actualOidSz ||
|
(checkOidSz != actualOidSz ||
|
||||||
XMEMCMP(actualOid, checkOid, checkOidSz) != 0) {
|
XMEMCMP(actualOid, checkOid, checkOidSz) != 0)) {
|
||||||
|
|
||||||
WOLFSSL_MSG("OID Check Failed");
|
WOLFSSL_MSG("OID Check Failed");
|
||||||
return ASN_UNKNOWN_OID_E;
|
return ASN_UNKNOWN_OID_E;
|
||||||
|
Reference in New Issue
Block a user