diff options
author | tb <> | 2024-03-02 10:40:05 +0000 |
---|---|---|
committer | tb <> | 2024-03-02 10:40:05 +0000 |
commit | 5a6928bc4b6854c45366b0767c4f86969e8f1e70 (patch) | |
tree | ccdc757e4067b1c1acd01e63ce831c832b72e204 /src/lib/libcrypto/x509/x509v3.h | |
parent | bb1a2b0bc26345c9c52fa57aebfca43c2a1e8e60 (diff) | |
download | openbsd-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/x509v3.h')
-rw-r--r-- | src/lib/libcrypto/x509/x509v3.h | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/lib/libcrypto/x509/x509v3.h b/src/lib/libcrypto/x509/x509v3.h index 676fd62c27..118a449e82 100644 --- a/src/lib/libcrypto/x509/x509v3.h +++ b/src/lib/libcrypto/x509/x509v3.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: x509v3.h,v 1.26 2024/03/02 10:35:32 tb Exp $ */ | 1 | /* $OpenBSD: x509v3.h,v 1.27 2024/03/02 10:40:05 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 | */ |
@@ -719,20 +719,13 @@ int X509V3_extensions_print(BIO *out, const char *title, | |||
719 | int X509_check_ca(X509 *x); | 719 | int X509_check_ca(X509 *x); |
720 | int X509_check_purpose(X509 *x, int id, int ca); | 720 | int X509_check_purpose(X509 *x, int id, int ca); |
721 | int X509_supported_extension(X509_EXTENSION *ex); | 721 | int X509_supported_extension(X509_EXTENSION *ex); |
722 | int X509_PURPOSE_set(int *p, int purpose); | ||
723 | int X509_check_issued(X509 *issuer, X509 *subject); | 722 | int X509_check_issued(X509 *issuer, X509 *subject); |
724 | int X509_check_akid(X509 *issuer, AUTHORITY_KEYID *akid); | 723 | int X509_check_akid(X509 *issuer, AUTHORITY_KEYID *akid); |
725 | int X509_PURPOSE_get_count(void); | 724 | int X509_PURPOSE_get_count(void); |
726 | X509_PURPOSE * X509_PURPOSE_get0(int idx); | 725 | X509_PURPOSE *X509_PURPOSE_get0(int idx); |
727 | int X509_PURPOSE_get_by_sname(const char *sname); | 726 | int X509_PURPOSE_get_by_sname(const char *sname); |
728 | int X509_PURPOSE_get_by_id(int id); | ||
729 | int X509_PURPOSE_add(int id, int trust, int flags, | ||
730 | int (*ck)(const X509_PURPOSE *, const X509 *, int), | ||
731 | const char *name, const char *sname, void *arg); | ||
732 | char *X509_PURPOSE_get0_name(const X509_PURPOSE *xp); | 727 | char *X509_PURPOSE_get0_name(const X509_PURPOSE *xp); |
733 | char *X509_PURPOSE_get0_sname(const X509_PURPOSE *xp); | 728 | char *X509_PURPOSE_get0_sname(const X509_PURPOSE *xp); |
734 | int X509_PURPOSE_get_trust(const X509_PURPOSE *xp); | ||
735 | void X509_PURPOSE_cleanup(void); | ||
736 | int X509_PURPOSE_get_id(const X509_PURPOSE *); | 729 | int X509_PURPOSE_get_id(const X509_PURPOSE *); |
737 | uint32_t X509_get_extension_flags(X509 *x); | 730 | uint32_t X509_get_extension_flags(X509 *x); |
738 | uint32_t X509_get_key_usage(X509 *x); | 731 | uint32_t X509_get_key_usage(X509 *x); |