summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509/x509_trs.c
diff options
context:
space:
mode:
authortb <>2024-08-31 10:12:23 +0000
committertb <>2024-08-31 10:12:23 +0000
commit1bfe42304abd279bc2acdd729257c0be64042977 (patch)
tree5ad4736711eb813207541e6898526bde4640e2e7 /src/lib/libcrypto/x509/x509_trs.c
parent7031212164b5493a716d2d9cd97186e6adf787b9 (diff)
downloadopenbsd-1bfe42304abd279bc2acdd729257c0be64042977.tar.gz
openbsd-1bfe42304abd279bc2acdd729257c0be64042977.tar.bz2
openbsd-1bfe42304abd279bc2acdd729257c0be64042977.zip
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
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);