summaryrefslogtreecommitdiff
path: root/src/regress/lib
diff options
context:
space:
mode:
authortb <>2020-09-21 06:01:44 +0000
committertb <>2020-09-21 06:01:44 +0000
commitc0061b5cd52cb5b2ad7f6358caeee40fedc70896 (patch)
tree5d3128da2e6841f568238bf585220289df57749f /src/regress/lib
parent6f6a3671ef8e90c0d1aa23f5a4d9bd100ec36723 (diff)
downloadopenbsd-c0061b5cd52cb5b2ad7f6358caeee40fedc70896.tar.gz
openbsd-c0061b5cd52cb5b2ad7f6358caeee40fedc70896.tar.bz2
openbsd-c0061b5cd52cb5b2ad7f6358caeee40fedc70896.zip
add a few short invalid URIs in test_constraints1() that cause early
failure of x509_constraints_uri_host() in x509_constraints_uri()
Diffstat (limited to 'src/regress/lib')
-rw-r--r--src/regress/lib/libcrypto/x509/constraints.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/regress/lib/libcrypto/x509/constraints.c b/src/regress/lib/libcrypto/x509/constraints.c
index 6e76f08113..4885ca97b1 100644
--- a/src/regress/lib/libcrypto/x509/constraints.c
+++ b/src/regress/lib/libcrypto/x509/constraints.c
@@ -390,6 +390,10 @@ test_constraints1(void)
390 "https://www.openbsd.net?", 390 "https://www.openbsd.net?",
391 "https://org#", 391 "https://org#",
392 "herp://beck@org:", 392 "herp://beck@org:",
393 "///",
394 "//",
395 "/",
396 "",
393 NULL, 397 NULL,
394 }; 398 };
395 for (i = 0; constraints[i] != NULL; i++) { 399 for (i = 0; constraints[i] != NULL; i++) {