diff options
Diffstat (limited to 'src/lib/libcrypto/x509/x509_cpols.c')
-rw-r--r-- | src/lib/libcrypto/x509/x509_cpols.c | 25 |
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 | ||
772 | void | ||
773 | X509_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 | } | ||
788 | LCRYPTO_ALIAS(X509_POLICY_NODE_print); | ||
789 | #endif | ||