From 4238ebebb39d6af646e692f7648ced95a5768c9a Mon Sep 17 00:00:00 2001 From: tb Date: Sun, 13 Mar 2022 17:08:04 +0000 Subject: [PATCH] Add x509_constraints_validate() to x509_internal.h From Alex Wilson ok jsing --- lib/libcrypto/x509/x509_internal.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/libcrypto/x509/x509_internal.h b/lib/libcrypto/x509/x509_internal.h index 9ac0c2bbde1..c64992a9ee7 100644 --- a/lib/libcrypto/x509/x509_internal.h +++ b/lib/libcrypto/x509/x509_internal.h @@ -1,4 +1,4 @@ -/* $OpenBSD: x509_internal.h,v 1.16 2021/11/24 05:38:12 beck Exp $ */ +/* $OpenBSD: x509_internal.h,v 1.17 2022/03/13 17:08:04 tb Exp $ */ /* * Copyright (c) 2020 Bob Beck * @@ -126,6 +126,8 @@ int x509_constraints_extract_names(struct x509_constraints_names *names, int x509_constraints_extract_constraints(X509 *cert, struct x509_constraints_names *permitted, struct x509_constraints_names *excluded, int *error); +int x509_constraints_validate(GENERAL_NAME *constraint, + struct x509_constraints_name *name, int *error); int x509_constraints_check(struct x509_constraints_names *names, struct x509_constraints_names *permitted, struct x509_constraints_names *excluded, int *error); -- 2.20.1