diff options
author | Jack Lloyd <[email protected]> | 2017-11-14 17:30:05 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-11-14 17:30:05 -0500 |
commit | 76fd273cadcdeebd6f9e0f79f47c21971088a37a (patch) | |
tree | e651320011374ba723e9983cc646e3ba21c09e7e /src/cli/asn1.cpp | |
parent | 6ff498730653d9837af32efaa5d4298d302cec73 (diff) |
Consolidate function for testing for ASN.1 string types
Diffstat (limited to 'src/cli/asn1.cpp')
-rw-r--r-- | src/cli/asn1.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/cli/asn1.cpp b/src/cli/asn1.cpp index 234cbd6e6..08c2562ba 100644 --- a/src/cli/asn1.cpp +++ b/src/cli/asn1.cpp @@ -336,13 +336,7 @@ void decode(std::ostream& output, emit(output, type_name(type_tag), level, length, bit_str); } - else if(type_tag == Botan::PRINTABLE_STRING || - type_tag == Botan::NUMERIC_STRING || - type_tag == Botan::IA5_STRING || - type_tag == Botan::T61_STRING || - type_tag == Botan::VISIBLE_STRING || - type_tag == Botan::UTF8_STRING || - type_tag == Botan::BMP_STRING) + else if(Botan::ASN1_String::is_string_type(type_tag)) { Botan::ASN1_String str; data.decode(str); |