summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509/x509_local.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/x509/x509_local.h')
-rw-r--r--src/lib/libcrypto/x509/x509_local.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/lib/libcrypto/x509/x509_local.h b/src/lib/libcrypto/x509/x509_local.h
index 043fc2dacf..6f711fe3e1 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.4 2023/04/16 18:42:30 tb Exp $ */ 1/* $OpenBSD: x509_local.h,v 1.5 2023/04/25 18:28: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 */
@@ -69,6 +69,11 @@ __BEGIN_HIDDEN_DECLS
69#define X509_CRL_HASH_EVP EVP_sha512() 69#define X509_CRL_HASH_EVP EVP_sha512()
70#define X509_CRL_HASH_LEN SHA512_DIGEST_LENGTH 70#define X509_CRL_HASH_LEN SHA512_DIGEST_LENGTH
71 71
72typedef struct X509_POLICY_NODE_st X509_POLICY_NODE;
73typedef struct X509_POLICY_LEVEL_st X509_POLICY_LEVEL;
74typedef struct X509_POLICY_TREE_st X509_POLICY_TREE;
75typedef struct X509_POLICY_CACHE_st X509_POLICY_CACHE;
76
72struct X509_pubkey_st { 77struct X509_pubkey_st {
73 X509_ALGOR *algor; 78 X509_ALGOR *algor;
74 ASN1_BIT_STRING *public_key; 79 ASN1_BIT_STRING *public_key;
@@ -385,6 +390,13 @@ int x509_check_cert_time(X509_STORE_CTX *ctx, X509 *x, int quiet);
385 390
386int name_cmp(const char *name, const char *cmp); 391int name_cmp(const char *name, const char *cmp);
387 392
393int X509_policy_check(X509_POLICY_TREE **ptree, int *pexplicit_policy,
394 STACK_OF(X509) *certs,
395 STACK_OF(ASN1_OBJECT) *policy_oids,
396 unsigned int flags);
397
398void X509_policy_tree_free(X509_POLICY_TREE *tree);
399
388__END_HIDDEN_DECLS 400__END_HIDDEN_DECLS
389 401
390#endif /* !HEADER_X509_LOCAL_H */ 402#endif /* !HEADER_X509_LOCAL_H */