summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authortb <>2023-04-16 08:21:13 +0000
committertb <>2023-04-16 08:21:13 +0000
commit5155e77c7b0c5d2688974520972a5bae814d3d03 (patch)
tree73765a5c7a2d6d28d4d962b2f4c75a4cb18d4396 /src/lib
parent7561b8bd9ef9ff52d48b21fe76fbb88d4ad77374 (diff)
downloadopenbsd-5155e77c7b0c5d2688974520972a5bae814d3d03.tar.gz
openbsd-5155e77c7b0c5d2688974520972a5bae814d3d03.tar.bz2
openbsd-5155e77c7b0c5d2688974520972a5bae814d3d03.zip
Mark remaining policy tree public API for removal
ok jsing
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/x509/x509_vfy.h17
-rw-r--r--src/lib/libcrypto/x509/x509v3.h5
2 files changed, 19 insertions, 3 deletions
diff --git a/src/lib/libcrypto/x509/x509_vfy.h b/src/lib/libcrypto/x509/x509_vfy.h
index 9e3c263a06..f5b103a0e7 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.58 2023/03/10 16:44:07 tb Exp $ */ 1/* $OpenBSD: x509_vfy.h,v 1.59 2023/04/16 08:21:12 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 *
@@ -416,8 +416,12 @@ X509_STORE_CTX_verify_fn X509_STORE_get_verify(X509_STORE *ctx);
416#define X509_STORE_set_verify_func(ctx, func) \ 416#define X509_STORE_set_verify_func(ctx, func) \
417 X509_STORE_set_verify((ctx), (func)) 417 X509_STORE_set_verify((ctx), (func))
418 418
419/* Remove in next bump. */
420#if !defined(LIBRESSL_NEXT_API) || defined(LIBRESSL_INTERNAL)
419X509_POLICY_TREE *X509_STORE_CTX_get0_policy_tree(X509_STORE_CTX *ctx); 421X509_POLICY_TREE *X509_STORE_CTX_get0_policy_tree(X509_STORE_CTX *ctx);
420int X509_STORE_CTX_get_explicit_policy(X509_STORE_CTX *ctx); 422int X509_STORE_CTX_get_explicit_policy(X509_STORE_CTX *ctx);
423#endif
424
421int X509_STORE_CTX_get_num_untrusted(X509_STORE_CTX *ctx); 425int X509_STORE_CTX_get_num_untrusted(X509_STORE_CTX *ctx);
422 426
423X509_VERIFY_PARAM *X509_STORE_CTX_get0_param(X509_STORE_CTX *ctx); 427X509_VERIFY_PARAM *X509_STORE_CTX_get0_param(X509_STORE_CTX *ctx);
@@ -468,13 +472,21 @@ int X509_VERIFY_PARAM_add0_table(X509_VERIFY_PARAM *param);
468const X509_VERIFY_PARAM *X509_VERIFY_PARAM_lookup(const char *name); 472const X509_VERIFY_PARAM *X509_VERIFY_PARAM_lookup(const char *name);
469void X509_VERIFY_PARAM_table_cleanup(void); 473void X509_VERIFY_PARAM_table_cleanup(void);
470 474
475/* Move to x509_local.h in next bump - needed by x509_vfy.c. */
476#if !defined(LIBRESSL_NEXT_API) || defined(LIBRESSL_INTERNAL)
471int X509_policy_check(X509_POLICY_TREE **ptree, int *pexplicit_policy, 477int X509_policy_check(X509_POLICY_TREE **ptree, int *pexplicit_policy,
472 STACK_OF(X509) *certs, 478 STACK_OF(X509) *certs,
473 STACK_OF(ASN1_OBJECT) *policy_oids, 479 STACK_OF(ASN1_OBJECT) *policy_oids,
474 unsigned int flags); 480 unsigned int flags);
475 481
476void X509_policy_tree_free(X509_POLICY_TREE *tree); 482void X509_policy_tree_free(X509_POLICY_TREE *tree);
483#endif
477 484
485/*
486 * Move these to pcy_int.h in next bump - X509_policy_tree_get0_user_policies()
487 * is actually used, the rest can be deleted.
488 */
489#if !defined(LIBRESSL_NEXT_API) || defined(LIBRESSL_INTERNAL)
478int X509_policy_tree_level_count(const X509_POLICY_TREE *tree); 490int X509_policy_tree_level_count(const X509_POLICY_TREE *tree);
479X509_POLICY_LEVEL * 491X509_POLICY_LEVEL *
480 X509_policy_tree_get0_level(const X509_POLICY_TREE *tree, int i); 492 X509_policy_tree_get0_level(const X509_POLICY_TREE *tree, int i);
@@ -496,8 +508,9 @@ STACK_OF(POLICYQUALINFO) *
496const X509_POLICY_NODE * 508const X509_POLICY_NODE *
497 X509_policy_node_get0_parent(const X509_POLICY_NODE *node); 509 X509_policy_node_get0_parent(const X509_POLICY_NODE *node);
498 510
511#endif
512
499#ifdef __cplusplus 513#ifdef __cplusplus
500} 514}
501#endif 515#endif
502#endif 516#endif
503
diff --git a/src/lib/libcrypto/x509/x509v3.h b/src/lib/libcrypto/x509/x509v3.h
index f4c12223ae..9a08845191 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.18 2023/04/16 08:11:38 tb Exp $ */ 1/* $OpenBSD: x509v3.h,v 1.19 2023/04/16 08:21:13 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 */
@@ -844,8 +844,11 @@ int a2i_ipadd(unsigned char *ipout, const char *ipasc);
844int X509V3_NAME_from_section(X509_NAME *nm, STACK_OF(CONF_VALUE)*dn_sk, 844int X509V3_NAME_from_section(X509_NAME *nm, STACK_OF(CONF_VALUE)*dn_sk,
845 unsigned long chtype); 845 unsigned long chtype);
846 846
847/* Move to pcy_int.h. */
848#if !defined(LIBRESSL_NEXT_API) || defined(LIBRESSL_INTERNAL)
847void X509_POLICY_NODE_print(BIO *out, X509_POLICY_NODE *node, int indent); 849void X509_POLICY_NODE_print(BIO *out, X509_POLICY_NODE *node, int indent);
848DECLARE_STACK_OF(X509_POLICY_NODE) 850DECLARE_STACK_OF(X509_POLICY_NODE)
851#endif
849 852
850#ifndef OPENSSL_NO_RFC3779 853#ifndef OPENSSL_NO_RFC3779
851typedef struct ASRange_st { 854typedef struct ASRange_st {