summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509/x509_vfy.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/x509/x509_vfy.h')
-rw-r--r--src/lib/libcrypto/x509/x509_vfy.h46
1 files changed, 1 insertions, 45 deletions
diff --git a/src/lib/libcrypto/x509/x509_vfy.h b/src/lib/libcrypto/x509/x509_vfy.h
index 3eb92b0f7f..cfa3533119 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.60 2023/04/16 08:30:21 tb Exp $ */ 1/* $OpenBSD: x509_vfy.h,v 1.61 2023/04/25 18:28: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 *
@@ -423,12 +423,6 @@ X509_STORE_CTX_verify_fn X509_STORE_get_verify(X509_STORE *ctx);
423#define X509_STORE_set_verify_func(ctx, func) \ 423#define X509_STORE_set_verify_func(ctx, func) \
424 X509_STORE_set_verify((ctx), (func)) 424 X509_STORE_set_verify((ctx), (func))
425 425
426/* Remove in next bump. */
427#if !defined(LIBRESSL_NEXT_API) || defined(LIBRESSL_INTERNAL)
428X509_POLICY_TREE *X509_STORE_CTX_get0_policy_tree(X509_STORE_CTX *ctx);
429int X509_STORE_CTX_get_explicit_policy(X509_STORE_CTX *ctx);
430#endif
431
432int X509_STORE_CTX_get_num_untrusted(X509_STORE_CTX *ctx); 426int X509_STORE_CTX_get_num_untrusted(X509_STORE_CTX *ctx);
433 427
434X509_VERIFY_PARAM *X509_STORE_CTX_get0_param(X509_STORE_CTX *ctx); 428X509_VERIFY_PARAM *X509_STORE_CTX_get0_param(X509_STORE_CTX *ctx);
@@ -479,44 +473,6 @@ int X509_VERIFY_PARAM_add0_table(X509_VERIFY_PARAM *param);
479const X509_VERIFY_PARAM *X509_VERIFY_PARAM_lookup(const char *name); 473const X509_VERIFY_PARAM *X509_VERIFY_PARAM_lookup(const char *name);
480void X509_VERIFY_PARAM_table_cleanup(void); 474void X509_VERIFY_PARAM_table_cleanup(void);
481 475
482/* Move to x509_local.h in next bump - needed by x509_vfy.c. */
483#if !defined(LIBRESSL_NEXT_API) || defined(LIBRESSL_INTERNAL)
484int X509_policy_check(X509_POLICY_TREE **ptree, int *pexplicit_policy,
485 STACK_OF(X509) *certs,
486 STACK_OF(ASN1_OBJECT) *policy_oids,
487 unsigned int flags);
488
489void X509_policy_tree_free(X509_POLICY_TREE *tree);
490#endif
491
492/*
493 * Move these to pcy_int.h in next bump - X509_policy_tree_get0_user_policies()
494 * is actually used, the rest can be deleted.
495 */
496#if !defined(LIBRESSL_NEXT_API) || defined(LIBRESSL_INTERNAL)
497int X509_policy_tree_level_count(const X509_POLICY_TREE *tree);
498X509_POLICY_LEVEL *
499 X509_policy_tree_get0_level(const X509_POLICY_TREE *tree, int i);
500
501STACK_OF(X509_POLICY_NODE) *
502 X509_policy_tree_get0_policies(const X509_POLICY_TREE *tree);
503
504STACK_OF(X509_POLICY_NODE) *
505 X509_policy_tree_get0_user_policies(const X509_POLICY_TREE *tree);
506
507int X509_policy_level_node_count(X509_POLICY_LEVEL *level);
508
509X509_POLICY_NODE *X509_policy_level_get0_node(X509_POLICY_LEVEL *level, int i);
510
511const ASN1_OBJECT *X509_policy_node_get0_policy(const X509_POLICY_NODE *node);
512
513STACK_OF(POLICYQUALINFO) *
514 X509_policy_node_get0_qualifiers(const X509_POLICY_NODE *node);
515const X509_POLICY_NODE *
516 X509_policy_node_get0_parent(const X509_POLICY_NODE *node);
517
518#endif
519
520#ifdef __cplusplus 476#ifdef __cplusplus
521} 477}
522#endif 478#endif