aboutsummaryrefslogtreecommitdiffstats
path: root/src/asn1/asn1_alt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/asn1/asn1_alt.cpp')
-rw-r--r--src/asn1/asn1_alt.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/asn1/asn1_alt.cpp b/src/asn1/asn1_alt.cpp
index 1fccf6ac0..1fc1f66e2 100644
--- a/src/asn1/asn1_alt.cpp
+++ b/src/asn1/asn1_alt.cpp
@@ -17,6 +17,24 @@
namespace Botan {
+namespace {
+
+/*
+* Check if type is a known ASN.1 string type
+*/
+bool is_string_type(ASN1_Tag tag)
+ {
+ return (tag == NUMERIC_STRING ||
+ tag == PRINTABLE_STRING ||
+ tag == VISIBLE_STRING ||
+ tag == T61_STRING ||
+ tag == IA5_STRING ||
+ tag == UTF8_STRING ||
+ tag == BMP_STRING);
+ }
+
+}
+
/*
* Create an AlternativeName
*/