From 1bfe42304abd279bc2acdd729257c0be64042977 Mon Sep 17 00:00:00 2001 From: tb <> Date: Sat, 31 Aug 2024 10:12:23 +0000 Subject: Remove X509_check_trust() and some related defines Someone thought it would be a good idea to append non-standard trust information to the certs in the trust store. This API is used to inspect that depending on the intended purpose of the cert. Only M2Crypto thought it necessary to expose this. It was adjusted. ok beck jsing --- src/lib/libcrypto/x509/x509_trs.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/lib/libcrypto/x509/x509_trs.c') diff --git a/src/lib/libcrypto/x509/x509_trs.c b/src/lib/libcrypto/x509/x509_trs.c index 9ba8194ee0..e7e42a83cd 100644 --- a/src/lib/libcrypto/x509/x509_trs.c +++ b/src/lib/libcrypto/x509/x509_trs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: x509_trs.c,v 1.57 2024/07/12 18:15:10 beck Exp $ */ +/* $OpenBSD: x509_trs.c,v 1.58 2024/08/31 10:12:23 tb Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project 1999. */ @@ -147,10 +147,6 @@ X509_check_trust(X509 *x, int trust_id, int flags) if (!x509v3_cache_extensions(x)) return X509_TRUST_UNTRUSTED; - /* - * XXX make X509_TRUST_ACCEPT_ALL a real boy once it does not - * need to have the same -1 value as X509_TRUST_DEFAULT - */ if (trust_id == X509_TRUST_ACCEPT_ALL) return 1; @@ -175,4 +171,3 @@ X509_check_trust(X509 *x, int trust_id, int flags) return trust_if_self_signed(x); } } -LCRYPTO_ALIAS(X509_check_trust); -- cgit v1.2.3-55-g6feb