summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509/x509_trs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/x509/x509_trs.c')
-rw-r--r--src/lib/libcrypto/x509/x509_trs.c7
1 files changed, 1 insertions, 6 deletions
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 @@
1/* $OpenBSD: x509_trs.c,v 1.57 2024/07/12 18:15:10 beck Exp $ */ 1/* $OpenBSD: x509_trs.c,v 1.58 2024/08/31 10:12:23 tb Exp $ */
2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL 2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
3 * project 1999. 3 * project 1999.
4 */ 4 */
@@ -147,10 +147,6 @@ X509_check_trust(X509 *x, int trust_id, int flags)
147 if (!x509v3_cache_extensions(x)) 147 if (!x509v3_cache_extensions(x))
148 return X509_TRUST_UNTRUSTED; 148 return X509_TRUST_UNTRUSTED;
149 149
150 /*
151 * XXX make X509_TRUST_ACCEPT_ALL a real boy once it does not
152 * need to have the same -1 value as X509_TRUST_DEFAULT
153 */
154 if (trust_id == X509_TRUST_ACCEPT_ALL) 150 if (trust_id == X509_TRUST_ACCEPT_ALL)
155 return 1; 151 return 1;
156 152
@@ -175,4 +171,3 @@ X509_check_trust(X509 *x, int trust_id, int flags)
175 return trust_if_self_signed(x); 171 return trust_if_self_signed(x);
176 } 172 }
177} 173}
178LCRYPTO_ALIAS(X509_check_trust);