x509: Fix build with DEBUG_LEVEL < 2 for structures that ignore unknown critical extensions

This commit is contained in:
Tobias Brunner
2023-05-08 14:07:18 +02:00
parent a551f80e4f
commit c0a281472f
3 changed files with 6 additions and 9 deletions
+2 -3
View File
@@ -429,7 +429,6 @@ static bool parse_certificate(private_x509_ac_t *this)
int extn_oid = OID_UNKNOWN;
signature_params_t sig_alg = {};
bool success = FALSE;
bool critical;
parser = asn1_parser_create(acObjects, this->encoding);
@@ -529,8 +528,8 @@ static bool parse_certificate(private_x509_ac_t *this)
extn_oid = asn1_known_oid(object);
break;
case AC_OBJ_CRITICAL:
critical = object.len && *object.ptr;
DBG2(DBG_ASN, " %s",(critical)?"TRUE":"FALSE");
DBG2(DBG_ASN, " %s",
object.len && *object.ptr ? "TRUE" : "FALSE");
break;
case AC_OBJ_EXTN_VALUE:
{