From c68792ad5f1a5c23b89cce981773d589934ec0f5 Mon Sep 17 00:00:00 2001 From: tb <> Date: Fri, 12 May 2023 10:43:28 +0000 Subject: asn1oct: add a couple more tests --- src/regress/lib/libcrypto/asn1/asn1oct.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/regress/lib') diff --git a/src/regress/lib/libcrypto/asn1/asn1oct.c b/src/regress/lib/libcrypto/asn1/asn1oct.c index a61e6edbc1..fef312d739 100644 --- a/src/regress/lib/libcrypto/asn1/asn1oct.c +++ b/src/regress/lib/libcrypto/asn1/asn1oct.c @@ -1,4 +1,4 @@ -/* $OpenBSD: asn1oct.c,v 1.2 2023/05/12 08:56:05 tb Exp $ */ +/* $OpenBSD: asn1oct.c,v 1.3 2023/05/12 10:43:28 tb Exp $ */ /* * Copyright (c) 2023 Theo Buehler @@ -155,6 +155,11 @@ static const struct s2i_asn1_octet_string_test { .in = "", .want = "", }, + { + .desc = "only colons", + .in = ":::::::", + .want = "", + }, { .desc = "a 0 octet", .in = "00", @@ -205,6 +210,10 @@ static const struct s2i_asn1_octet_string_test { .desc = "non-hex digit", .in = "g00d", }, + { + .desc = "non-hex digits", + .in = "d0gged", + }, { .desc = "trailing non-hex digit", .in = "d00der", -- cgit v1.2.3-55-g6feb