aboutsummaryrefslogtreecommitdiffstats
path: root/src/cli/asn1.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-11-14 17:30:05 -0500
committerJack Lloyd <[email protected]>2017-11-14 17:30:05 -0500
commit76fd273cadcdeebd6f9e0f79f47c21971088a37a (patch)
treee651320011374ba723e9983cc646e3ba21c09e7e /src/cli/asn1.cpp
parent6ff498730653d9837af32efaa5d4298d302cec73 (diff)
Consolidate function for testing for ASN.1 string types
Diffstat (limited to 'src/cli/asn1.cpp')
-rw-r--r--src/cli/asn1.cpp8
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);