aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-07-04 17:48:22 -0400
committerJack Lloyd <[email protected]>2018-07-04 17:48:59 -0400
commit385b26478f943203a35cd360a748e03d14f90865 (patch)
treec2e07b2b228777708d2f5bedf4f3af6a70c3d861
parent0e1e58b2107bf752b34646f3d2a0a8de24478b20 (diff)
In cli ASN1 pretty printer default to printing context specific
This means things like GeneralNames are printed properly now.
-rw-r--r--src/cli/asn1.cpp4
1 files 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;