-/* $OpenBSD: constraints.c,v 1.14 2022/11/23 23:06:16 kn Exp $ */
+/* $OpenBSD: constraints.c,v 1.15 2022/11/28 07:24:03 tb Exp $ */
/*
* Copyright (c) 2020 Bob Beck <beck@openbsd.org>
*
char *hostpart = NULL;
error = 0;
if (!x509_constraints_uri_host(noauthority[j],
+ strlen(noauthority[j]), NULL) ||
+ !x509_constraints_uri_host(noauthority[j],
strlen(noauthority[j]), &hostpart)) {
FAIL("name '%s' should parse as a URI",
noauthority[j]);