Skip to content

Commit 7b4b4dc

Browse files
author
jsing
committed
Add another invalid separator test case.
1 parent 1645bfe commit 7b4b4dc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/regress/lib/libcrypto/asn1/asn1object.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $OpenBSD: asn1object.c,v 1.4 2022/03/15 18:29:12 tb Exp $ */
1+
/* $OpenBSD: asn1object.c,v 1.5 2022/03/19 16:23:17 jsing Exp $ */
22
/*
33
* Copyright (c) 2017, 2021, 2022 Joel Sing <jsing@openbsd.org>
44
*
@@ -252,6 +252,10 @@ struct asn1_object_test asn1_object_tests[] = {
252252
.oid = "2.5,4.10",
253253
.want_error = ASN1_R_INVALID_DIGIT,
254254
},
255+
{
256+
.oid = "2a.5.4.10",
257+
.want_error = ASN1_R_INVALID_SEPARATOR,
258+
},
255259
{
256260
.oid = "2.5a.4.10",
257261
.want_error = ASN1_R_INVALID_DIGIT,

0 commit comments

Comments
 (0)