summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509/x509_vfy.h
diff options
context:
space:
mode:
authortb <>2024-03-02 10:40:05 +0000
committertb <>2024-03-02 10:40:05 +0000
commit5a6928bc4b6854c45366b0767c4f86969e8f1e70 (patch)
treeccdc757e4067b1c1acd01e63ce831c832b72e204 /src/lib/libcrypto/x509/x509_vfy.h
parentbb1a2b0bc26345c9c52fa57aebfca43c2a1e8e60 (diff)
downloadopenbsd-5a6928bc4b6854c45366b0767c4f86969e8f1e70.tar.gz
openbsd-5a6928bc4b6854c45366b0767c4f86969e8f1e70.tar.bz2
openbsd-5a6928bc4b6854c45366b0767c4f86969e8f1e70.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.h')
-rw-r--r--src/lib/libcrypto/x509/x509_vfy.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/libcrypto/x509/x509_vfy.h b/src/lib/libcrypto/x509/x509_vfy.h
index d7657a51f0..914a83bb00 100644
--- a/src/lib/libcrypto/x509/x509_vfy.h
+++ b/src/lib/libcrypto/x509/x509_vfy.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: x509_vfy.h,v 1.65 2024/02/23 10:39:07 tb Exp $ */ 1/* $OpenBSD: x509_vfy.h,v 1.66 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 *
@@ -404,8 +404,6 @@ void X509_STORE_CTX_set_chain(X509_STORE_CTX *c,STACK_OF(X509) *sk);
404void X509_STORE_CTX_set0_crls(X509_STORE_CTX *c,STACK_OF(X509_CRL) *sk); 404void X509_STORE_CTX_set0_crls(X509_STORE_CTX *c,STACK_OF(X509_CRL) *sk);
405int X509_STORE_CTX_set_purpose(X509_STORE_CTX *ctx, int purpose); 405int X509_STORE_CTX_set_purpose(X509_STORE_CTX *ctx, int purpose);
406int X509_STORE_CTX_set_trust(X509_STORE_CTX *ctx, int trust); 406int X509_STORE_CTX_set_trust(X509_STORE_CTX *ctx, int trust);
407int X509_STORE_CTX_purpose_inherit(X509_STORE_CTX *ctx, int def_purpose,
408 int purpose, int trust);
409void X509_STORE_CTX_set_flags(X509_STORE_CTX *ctx, unsigned long flags); 407void X509_STORE_CTX_set_flags(X509_STORE_CTX *ctx, unsigned long flags);
410void X509_STORE_CTX_set_time(X509_STORE_CTX *ctx, unsigned long flags, 408void X509_STORE_CTX_set_time(X509_STORE_CTX *ctx, unsigned long flags,
411 time_t t); 409 time_t t);