summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjsing <>2022-03-19 16:23:17 +0000
committerjsing <>2022-03-19 16:23:17 +0000
commite544118176ce242382a727f39e3d83c958ad4b12 (patch)
tree272f0bdab2d496242008b286c82781f18e8abef6 /src
parentc5bd1c6747cb8fb5f9c3011ba331a58d8581b85a (diff)
downloadopenbsd-e544118176ce242382a727f39e3d83c958ad4b12.tar.gz
openbsd-e544118176ce242382a727f39e3d83c958ad4b12.tar.bz2
openbsd-e544118176ce242382a727f39e3d83c958ad4b12.zip
Add another invalid separator test case.
Diffstat (limited to 'src')
-rw-r--r--src/regress/lib/libcrypto/asn1/asn1object.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/regress/lib/libcrypto/asn1/asn1object.c b/src/regress/lib/libcrypto/asn1/asn1object.c
index 77ebae6616..ccaad4e9cf 100644
--- a/src/regress/lib/libcrypto/asn1/asn1object.c
+++ b/src/regress/lib/libcrypto/asn1/asn1object.c
@@ -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 $ */
2/* 2/*
3 * Copyright (c) 2017, 2021, 2022 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2017, 2021, 2022 Joel Sing <jsing@openbsd.org>
4 * 4 *
@@ -253,6 +253,10 @@ struct asn1_object_test asn1_object_tests[] = {
253 .want_error = ASN1_R_INVALID_DIGIT, 253 .want_error = ASN1_R_INVALID_DIGIT,
254 }, 254 },
255 { 255 {
256 .oid = "2a.5.4.10",
257 .want_error = ASN1_R_INVALID_SEPARATOR,
258 },
259 {
256 .oid = "2.5a.4.10", 260 .oid = "2.5a.4.10",
257 .want_error = ASN1_R_INVALID_DIGIT, 261 .want_error = ASN1_R_INVALID_DIGIT,
258 }, 262 },