summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509/x509_local.h
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_local.h
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_local.h')
-rw-r--r--src/lib/libcrypto/x509/x509_local.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/libcrypto/x509/x509_local.h b/src/lib/libcrypto/x509/x509_local.h
index 4ac99da2bd..342aa226fb 100644
--- a/src/lib/libcrypto/x509/x509_local.h
+++ b/src/lib/libcrypto/x509/x509_local.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: x509_local.h,v 1.20 2024/03/02 10:20:27 tb Exp $ */ 1/* $OpenBSD: x509_local.h,v 1.21 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 2013. 3 * project 2013.
4 */ 4 */
@@ -59,6 +59,8 @@
59#ifndef HEADER_X509_LOCAL_H 59#ifndef HEADER_X509_LOCAL_H
60#define HEADER_X509_LOCAL_H 60#define HEADER_X509_LOCAL_H
61 61
62#include <openssl/x509v3.h>
63
62__BEGIN_HIDDEN_DECLS 64__BEGIN_HIDDEN_DECLS
63 65
64#define TS_HASH_EVP EVP_sha1() 66#define TS_HASH_EVP EVP_sha1()
@@ -402,6 +404,9 @@ X509_ALGOR *PKCS5_pbe_set(int alg, int iter, const unsigned char *salt,
402X509_ALGOR *PKCS5_pbkdf2_set(int iter, unsigned char *salt, int saltlen, 404X509_ALGOR *PKCS5_pbkdf2_set(int iter, unsigned char *salt, int saltlen,
403 int prf_nid, int keylen); 405 int prf_nid, int keylen);
404 406
407int X509_PURPOSE_get_by_id(int id);
408int X509_PURPOSE_get_trust(const X509_PURPOSE *xp);
409
405__END_HIDDEN_DECLS 410__END_HIDDEN_DECLS
406 411
407#endif /* !HEADER_X509_LOCAL_H */ 412#endif /* !HEADER_X509_LOCAL_H */