Skip to content

Commit c17fb74

Browse files
committed
OCSP Revocation Reason
1. The ASN.1 parser wasn't handling the OCSP response correctly when there was a revocation reason included in the response. The encoded reason value is constructed, and was getting marked as not constructed in the parser. Changed the flag to mark it as constructed.
1 parent 06f04de commit c17fb74

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wolfcrypt/src/asn.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34937,7 +34937,7 @@ static const ASNItem singleResponseASN[] = {
3493734937
/* revocationTime */
3493834938
/* CS_REVOKED_TIME */ { 2, ASN_GENERALIZED_TIME, 0, 0, 0 },
3493934939
/* revocationReason [0] EXPLICIT CRLReason OPTIONAL */
34940-
/* CS_REVOKED_REASON */ { 2, ASN_CONTEXT_SPECIFIC | 0, 0, 1, 1 },
34940+
/* CS_REVOKED_REASON */ { 2, ASN_CONTEXT_SPECIFIC | 0, 1, 1, 1 },
3494134941
/* crlReason */
3494234942
/* CS_REVOKED_REASON_VAL */ { 3, ASN_ENUMERATED, 0, 0, 0 },
3494334943
/* unknown [2] IMPLICIT UnknownInfo ::= NULL */

0 commit comments

Comments
 (0)