diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2022-03-19 16:23:18 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2022-03-19 16:23:18 +0000 |
commit | c9ba8d8aad413d3ebd1982314281586fdea8b17f (patch) | |
tree | 5fc852f03fb99904a6e1bbc28e491f8f56fe02e9 /regress/lib/libcrypto | |
parent | dc4cd23353e2ef57479c3601b67f306ce8eba26f (diff) |
Add another invalid separator test case.
Diffstat (limited to 'regress/lib/libcrypto')
-rw-r--r-- | regress/lib/libcrypto/asn1/asn1object.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/regress/lib/libcrypto/asn1/asn1object.c b/regress/lib/libcrypto/asn1/asn1object.c index 77ebae66169..ccaad4e9cfa 100644 --- a/regress/lib/libcrypto/asn1/asn1object.c +++ b/regress/lib/libcrypto/asn1/asn1object.c @@ -1,4 +1,4 @@ -/* $OpenBSD: asn1object.c,v 1.4 2022/03/15 18:29:12 tb Exp $ */ +/* $OpenBSD: asn1object.c,v 1.5 2022/03/19 16:23:17 jsing Exp $ */ /* * Copyright (c) 2017, 2021, 2022 Joel Sing <jsing@openbsd.org> * @@ -253,6 +253,10 @@ struct asn1_object_test asn1_object_tests[] = { .want_error = ASN1_R_INVALID_DIGIT, }, { + .oid = "2a.5.4.10", + .want_error = ASN1_R_INVALID_SEPARATOR, + }, + { .oid = "2.5a.4.10", .want_error = ASN1_R_INVALID_DIGIT, }, |