-/* $OpenBSD: x509_verify.c,v 1.49 2021/09/09 15:09:43 beck Exp $ */
+/* $OpenBSD: x509_verify.c,v 1.50 2021/10/26 15:14:18 job Exp $ */
/*
* Copyright (c) 2020-2021 Bob Beck <beck@openbsd.org>
*
if (!x509_vfy_check_chain_extensions(ctx->xsc))
goto err;
+#ifndef OPENSSL_NO_RFC3779
+ if (!X509v3_asid_validate_path(ctx->xsc))
+ goto err;
+
+ if (!X509v3_addr_validate_path(ctx->xsc))
+ goto err;
+#endif
+
if (!x509_constraints_chain(ctx->xsc->chain,
&ctx->xsc->error, &ctx->xsc->error_depth)) {
X509 *cert = sk_X509_value(ctx->xsc->chain, depth);
-/* $OpenBSD: x509_vfy.c,v 1.91 2021/10/24 13:52:13 tb Exp $ */
+/* $OpenBSD: x509_vfy.c,v 1.92 2021/10/26 15:14:18 job Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
if (!ok)
goto end;
+#ifndef OPENSSL_NO_RFC3779
+ ok = X509v3_asid_validate_path(ctx);
+ if (!ok)
+ goto end;
+
+ ok = X509v3_addr_validate_path(ctx);
+ if (!ok)
+ goto end;
+#endif
+
ok = check_id(ctx);
if (!ok)
goto end;