From: jsing Date: Wed, 27 Apr 2022 17:43:06 +0000 (+0000) Subject: Enable ASN.1 INTEGER tests with invalid lengths/encodings. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=7259fd760b261a673353a41b03831cb46a8dc63e;p=openbsd Enable ASN.1 INTEGER tests with invalid lengths/encodings. --- diff --git a/regress/lib/libcrypto/asn1/asn1basic.c b/regress/lib/libcrypto/asn1/asn1basic.c index b22fdde5342..6c7e32df6c8 100644 --- a/regress/lib/libcrypto/asn1/asn1basic.c +++ b/regress/lib/libcrypto/asn1/asn1basic.c @@ -1,4 +1,4 @@ -/* $OpenBSD: asn1basic.c,v 1.5 2022/04/23 18:23:48 jsing Exp $ */ +/* $OpenBSD: asn1basic.c,v 1.6 2022/04/27 17:43:06 jsing Exp $ */ /* * Copyright (c) 2017, 2021 Joel Sing * @@ -312,7 +312,6 @@ struct asn1_integer_test asn1_integer_tests[] = { .der = {0x02, 0x09, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, .der_len = 11, }, -#if 0 { /* Invalid length. */ .der = {0x02, 0x00}, @@ -331,7 +330,6 @@ struct asn1_integer_test asn1_integer_tests[] = { .der_len = 11, .want_error = 1, }, -#endif }; #define N_ASN1_INTEGER_TESTS \