From bac34e6a9c63e34632ddd7154da5de3ff012e394 Mon Sep 17 00:00:00 2001 From: inoguchi <> Date: Wed, 16 Sep 2020 12:51:15 +0000 Subject: noop NAME_CONSTRAINTS_check stub On OSX and Windows platform portable build fails since it can't find NAME_CONSTRAINTS_check. It is still remain in x509v3.h and Symbols.list but '#if 0'ed from x509_ncons.c. In this situation, some platforms appears to get error. Add noop NAME_CONSTRAINTS_check stub to solve this issue. ok beck@ --- src/lib/libcrypto/x509/x509_ncons.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/lib/libcrypto/x509/x509_ncons.c b/src/lib/libcrypto/x509/x509_ncons.c index 1b0a4850d6..4f12542492 100644 --- a/src/lib/libcrypto/x509/x509_ncons.c +++ b/src/lib/libcrypto/x509/x509_ncons.c @@ -1,4 +1,4 @@ -/* $OpenBSD: x509_ncons.c,v 1.2 2020/09/15 11:53:45 beck Exp $ */ +/* $OpenBSD: x509_ncons.c,v 1.3 2020/09/16 12:51:15 inoguchi Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project. */ @@ -288,7 +288,7 @@ print_nc_ipadd(BIO *bp, ASN1_OCTET_STRING *ip) BIO_printf(bp, "IP Address:"); return 1; } -#if 0 + /* Check a certificate conforms to a specified set of constraints. * Return values: * X509_V_OK: All constraints obeyed. @@ -303,6 +303,7 @@ print_nc_ipadd(BIO *bp, ASN1_OCTET_STRING *ip) int NAME_CONSTRAINTS_check(X509 *x, NAME_CONSTRAINTS *nc) { +#if 0 int r, i; X509_NAME *nm; @@ -347,10 +348,10 @@ NAME_CONSTRAINTS_check(X509 *x, NAME_CONSTRAINTS *nc) if (r != X509_V_OK) return r; } - +#endif return X509_V_OK; } - +#if 0 static int nc_match(GENERAL_NAME *gen, NAME_CONSTRAINTS *nc) { -- cgit v1.2.3-55-g6feb