asn1: Allow suppressing log messages when parsing algorithm identifiers

This commit is contained in:
Tobias Brunner
2023-03-30 10:46:46 +02:00
parent 4e73e9d3e9
commit 1326f805a8
3 changed files with 18 additions and 9 deletions
+3 -3
View File
@@ -81,11 +81,11 @@ START_TEST(test_asn1_parse_algorithmIdentifier)
parameters = chunk_empty;
if (i == 2)
{
alg = asn1_parse_algorithmIdentifier(algid, 0, NULL);
alg = asn1_parse_algorithmIdentifier(algid, _i, NULL);
}
else
{
alg = asn1_parse_algorithmIdentifier(algid, 0, &parameters);
alg = asn1_parse_algorithmIdentifier(algid, _i, &parameters);
if (test[i].empty)
{
ck_assert(parameters.len == 0 && parameters.ptr == NULL);
@@ -824,7 +824,7 @@ Suite *asn1_suite_create()
suite_add_tcase(s, tc);
tc = tcase_create("parse_algorithmIdentifier");
tcase_add_test(tc, test_asn1_parse_algorithmIdentifier);
tcase_add_loop_test(tc, test_asn1_parse_algorithmIdentifier, -1, 1);
suite_add_tcase(s, tc);
tc = tcase_create("known_oid");