x509: Correctly parse nonce in OCSP response
Fixes: d7dc677ee5 ("x509: Correctly encode nonce in OCSP request")
This commit is contained in:
@@ -577,7 +577,9 @@ static bool parse_basicOCSPResponse(private_x509_ocsp_response_t *this,
|
|||||||
DBG2(DBG_ASN, " %s", critical ? "TRUE" : "FALSE");
|
DBG2(DBG_ASN, " %s", critical ? "TRUE" : "FALSE");
|
||||||
break;
|
break;
|
||||||
case BASIC_RESPONSE_EXT_VALUE:
|
case BASIC_RESPONSE_EXT_VALUE:
|
||||||
if (extn_oid == OID_NONCE)
|
if (extn_oid == OID_NONCE &&
|
||||||
|
asn1_parse_simple_object(&object, ASN1_OCTET_STRING,
|
||||||
|
parser->get_level(parser)+1, "nonce"))
|
||||||
{
|
{
|
||||||
this->nonce = object;
|
this->nonce = object;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user