asn1: Fix build with DEBUG_LEVEL < 2

This commit is contained in:
Tobias Brunner
2023-05-08 14:06:43 +02:00
parent 2d4a98d0d3
commit d7750dff9b
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -548,9 +548,10 @@ void asn1_debug_simple_object(chunk_t object, asn1_t type, bool private)
case ASN1_UTCTIME:
case ASN1_GENERALIZEDTIME:
{
#if DEBUG_LEVEL >= 2
time_t time = asn1_to_time(&object, type);
DBG2(DBG_ASN, " '%T'", &time, TRUE);
#endif
}
return;
default:
+1 -1
View File
@@ -89,7 +89,7 @@ METHOD(asn1_parser_t, iterate, bool,
{
chunk_t *blob, *blob1, blob_ori;
u_char *start_ptr;
u_int level;
u_int level DBG_UNUSED;
asn1Object_t obj;
*object = chunk_empty;