From 2349f20fdb312a74b2705bf7f0e298be13e3d7a0 Mon Sep 17 00:00:00 2001 From: Rene Meusel Date: Sat, 28 Oct 2017 18:39:52 +0200 Subject: introduce UNIVERSAL_STRING (UCS-4) --- src/lib/asn1/asn1_obj.h | 1 + src/lib/asn1/asn1_str.cpp | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'src/lib') 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)); } -- cgit v1.2.3