summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509/x509_cpols.c
diff options
context:
space:
mode:
authortb <>2023-04-26 20:43:32 +0000
committertb <>2023-04-26 20:43:32 +0000
commitb095c3c5a1f9e1ca6df4f040af58aa1e778537bf (patch)
tree9eb75afdde7f7f11fd0c86e8a506d4c450decf8f /src/lib/libcrypto/x509/x509_cpols.c
parent453b91d6329d9b353060b1a405a350428ad1d2b4 (diff)
downloadopenbsd-b095c3c5a1f9e1ca6df4f040af58aa1e778537bf.tar.gz
openbsd-b095c3c5a1f9e1ca6df4f040af58aa1e778537bf.tar.bz2
openbsd-b095c3c5a1f9e1ca6df4f040af58aa1e778537bf.zip
Take X509_POLICY_NODE_print() behind the barn
This used to be public API but is now only used for debug code that has certainly never been used since it was released to the public. It drags that debug nonsense with it. ok beck
Diffstat (limited to 'src/lib/libcrypto/x509/x509_cpols.c')
-rw-r--r--src/lib/libcrypto/x509/x509_cpols.c25
1 files changed, 1 insertions, 24 deletions
diff --git a/src/lib/libcrypto/x509/x509_cpols.c b/src/lib/libcrypto/x509/x509_cpols.c
index bac0209371..bb09034ce0 100644
--- a/src/lib/libcrypto/x509/x509_cpols.c
+++ b/src/lib/libcrypto/x509/x509_cpols.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: x509_cpols.c,v 1.9 2023/04/26 19:11:33 beck Exp $ */ 1/* $OpenBSD: x509_cpols.c,v 1.10 2023/04/26 20:43:32 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 */
@@ -65,9 +65,6 @@
65#include <openssl/err.h> 65#include <openssl/err.h>
66#include <openssl/x509v3.h> 66#include <openssl/x509v3.h>
67 67
68#ifndef LIBRESSL_HAS_POLICY_DAG
69#include "pcy_int.h"
70#endif
71#include "x509_local.h" 68#include "x509_local.h"
72 69
73/* Certificate policies extension support: this one is a bit complex... */ 70/* Certificate policies extension support: this one is a bit complex... */
@@ -767,23 +764,3 @@ print_notice(BIO *out, USERNOTICE *notice, int indent)
767 BIO_printf(out, "%*sExplicit Text: %.*s\n", indent, "", 764 BIO_printf(out, "%*sExplicit Text: %.*s\n", indent, "",
768 notice->exptext->length, notice->exptext->data); 765 notice->exptext->length, notice->exptext->data);
769} 766}
770
771#ifndef LIBRESSL_HAS_POLICY_DAG
772void
773X509_POLICY_NODE_print(BIO *out, X509_POLICY_NODE *node, int indent)
774{
775 const X509_POLICY_DATA *dat = node->data;
776
777 BIO_printf(out, "%*sPolicy: ", indent, "");
778
779 i2a_ASN1_OBJECT(out, dat->valid_policy);
780 BIO_puts(out, "\n");
781 BIO_printf(out, "%*s%s\n", indent + 2, "",
782 node_data_critical(dat) ? "Critical" : "Non Critical");
783 if (dat->qualifier_set)
784 print_qualifiers(out, dat->qualifier_set, indent + 2);
785 else
786 BIO_printf(out, "%*sNo Qualifiers\n", indent + 2, "");
787}
788LCRYPTO_ALIAS(X509_POLICY_NODE_print);
789#endif