From ce2cf3439d47c952d8cac36ac1cb0b15e2c9b66e Mon Sep 17 00:00:00 2001 From: JacobBarthelmeh Date: Fri, 26 Aug 2022 14:39:20 -0700 Subject: [PATCH] subject info. acc. should contain a CA repo entry not OCSP --- wolfcrypt/src/asn.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wolfcrypt/src/asn.c b/wolfcrypt/src/asn.c index 6931444a3..5bc01769f 100644 --- a/wolfcrypt/src/asn.c +++ b/wolfcrypt/src/asn.c @@ -18885,8 +18885,8 @@ static int DecodeSubjInfoAcc(const byte* input, int sz, DecodedCert* cert) if (GetLength(input, &idx, &length, sz) < 0) return ASN_PARSE_E; - /* Set ocsp entry */ - if (b == GENERALNAME_URI && oid == AIA_OCSP_OID) { + /* Set caRepo entry */ + if (b == GENERALNAME_URI && oid == AIA_CA_REPO_OID) { cert->extSubjInfoAccCaRepoSz = length; cert->extSubjInfoAccCaRepo = input + idx; break;