aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorRene Meusel <[email protected]>2017-10-28 18:39:52 +0200
committerJack Lloyd <[email protected]>2017-11-09 16:05:17 -0500
commit2349f20fdb312a74b2705bf7f0e298be13e3d7a0 (patch)
tree4c542cef200334dabf814620d0049aa1c47f7751 /src/lib
parent6818b78851c930f2e6747c9a40187bec88720d7b (diff)
introduce UNIVERSAL_STRING (UCS-4)
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/asn1/asn1_obj.h1
-rw-r--r--src/lib/asn1/asn1_str.cpp3
2 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/asn1/asn1_obj.h b/src/lib/asn1/asn1_obj.h
index 63c7dc2e3..95b84c5c1 100644
--- a/src/lib/asn1/asn1_obj.h
+++ b/src/lib/asn1/asn1_obj.h
@@ -45,6 +45,7 @@ enum ASN1_Tag {
T61_STRING = 0x14,
IA5_STRING = 0x16,
VISIBLE_STRING = 0x1A,
+ UNIVERSAL_STRING = 0x1C,
BMP_STRING = 0x1E,
UTC_TIME = 0x17,
diff --git a/src/lib/asn1/asn1_str.cpp b/src/lib/asn1/asn1_str.cpp
index e6cb229a6..4e1d1d78d 100644
--- a/src/lib/asn1/asn1_str.cpp
+++ b/src/lib/asn1/asn1_str.cpp
@@ -73,7 +73,8 @@ ASN1_String::ASN1_String(const std::string& str, ASN1_Tag t) : m_utf8_str(str),
m_tag != T61_STRING &&
m_tag != IA5_STRING &&
m_tag != UTF8_STRING &&
- m_tag != BMP_STRING)
+ m_tag != BMP_STRING &&
+ m_tag != UNIVERSAL_STRING)
throw Invalid_Argument("ASN1_String: Unknown string type " +
std::to_string(m_tag));
}