diff options
author | Jack Lloyd <[email protected]> | 2018-01-03 12:11:19 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-01-03 12:21:37 -0500 |
commit | 90d166094e07f20f6321da3d0ae5e70b6a7c89b8 (patch) | |
tree | 8c694e7c1b5a7fa1ef7f1f92301eb52a0b07cbd8 /src/tests/test_asn1.cpp | |
parent | a763fd97c32fb3f796bbafcfd72994ddbee0f6e1 (diff) |
Improve output of the ASN1 printer
The output was pretty much wrong for application-tagged types. Instead
the type was printed as if it was a universal tag.
Add a hack in the ASN1 printer for GeneralNames. These are a commonly
used implicitly tagged type. Basically if it is a context specific field,
and it looks like it might be a printable URI or DNS GeneralName, treat it
as a string.
Diffstat (limited to 'src/tests/test_asn1.cpp')
-rw-r--r-- | src/tests/test_asn1.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/test_asn1.cpp b/src/tests/test_asn1.cpp index 4e324f04d..857754745 100644 --- a/src/tests/test_asn1.cpp +++ b/src/tests/test_asn1.cpp @@ -300,7 +300,7 @@ class ASN1_Printer_Tests final : public Test Botan::ASN1_Pretty_Printer printer; - const size_t num_tests = 4; + const size_t num_tests = 5; for(size_t i = 1; i <= num_tests; ++i) { |