From 385b26478f943203a35cd360a748e03d14f90865 Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Wed, 4 Jul 2018 17:48:22 -0400 Subject: In cli ASN1 pretty printer default to printing context specific This means things like GeneralNames are printed properly now. --- src/cli/asn1.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cli/asn1.cpp b/src/cli/asn1.cpp index 45185950c..32cec2c25 100644 --- a/src/cli/asn1.cpp +++ b/src/cli/asn1.cpp @@ -20,7 +20,7 @@ namespace Botan_CLI { class ASN1_Printer final : public Command { public: - ASN1_Printer() : Command("asn1print --print-context-specific --print-limit=4096 --bin-limit=2048 --max-depth=64 --pem file") {} + ASN1_Printer() : Command("asn1print --skip-context-specific --print-limit=4096 --bin-limit=2048 --max-depth=64 --pem file") {} std::string group() const override { @@ -49,7 +49,7 @@ class ASN1_Printer final : public Command const std::string input = get_arg("file"); const size_t print_limit = get_arg_sz("print-limit"); const size_t bin_limit = get_arg_sz("bin-limit"); - const bool print_context_specific = flag_set("print-context-specific"); + const bool print_context_specific = flag_set("skip-context-specific") == false; const size_t max_depth = get_arg_sz("max-depth"); const size_t value_column = 60; -- cgit v1.2.3