summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509/x509_vfy.c
diff options
context:
space:
mode:
authortb <>2024-03-02 10:40:05 +0000
committertb <>2024-03-02 10:40:05 +0000
commit7b018fc829c78dbce4b7cd8a28aa798b3e03d6a4 (patch)
treeccdc757e4067b1c1acd01e63ce831c832b72e204 /src/lib/libcrypto/x509/x509_vfy.c
parenta3c990bc8f1fde064c43ffefb311482cb87ecd54 (diff)
downloadopenbsd-7b018fc829c78dbce4b7cd8a28aa798b3e03d6a4.tar.gz
openbsd-7b018fc829c78dbce4b7cd8a28aa798b3e03d6a4.tar.bz2
openbsd-7b018fc829c78dbce4b7cd8a28aa798b3e03d6a4.zip
Remove unused parts of the purpose API
Most of this is the ability to add custom purposes. Also the astounding X509_STORE_CTX_purpose_inherit(). The names are used by PHP, and M2Crypto exposes X509_check_purpose(), so these remain public. Some weird, most likely invalid, uses also remain in rust-openssl. ok jsing
Diffstat (limited to 'src/lib/libcrypto/x509/x509_vfy.c')
-rw-r--r--src/lib/libcrypto/x509/x509_vfy.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/lib/libcrypto/x509/x509_vfy.c b/src/lib/libcrypto/x509/x509_vfy.c
index 499db35578..5399658639 100644
--- a/src/lib/libcrypto/x509/x509_vfy.c
+++ b/src/lib/libcrypto/x509/x509_vfy.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: x509_vfy.c,v 1.141 2024/02/28 12:21:16 tb Exp $ */ 1/* $OpenBSD: x509_vfy.c,v 1.142 2024/03/02 10:40:05 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -2172,15 +2172,6 @@ LCRYPTO_ALIAS(X509_STORE_CTX_set0_crls);
2172 * aren't set then we use the default of SSL client/server. 2172 * aren't set then we use the default of SSL client/server.
2173 */ 2173 */
2174int 2174int
2175X509_STORE_CTX_purpose_inherit(X509_STORE_CTX *ctx, int def_purpose,
2176 int purpose, int trust)
2177{
2178 X509error(ERR_R_DISABLED);
2179 return 0;
2180}
2181LCRYPTO_ALIAS(X509_STORE_CTX_purpose_inherit);
2182
2183int
2184X509_STORE_CTX_set_purpose(X509_STORE_CTX *ctx, int purpose_id) 2175X509_STORE_CTX_set_purpose(X509_STORE_CTX *ctx, int purpose_id)
2185{ 2176{
2186 const X509_PURPOSE *purpose; 2177 const X509_PURPOSE *purpose;