diff options
Diffstat (limited to 'src/lib/asn1')
-rw-r--r-- | src/lib/asn1/asn1_obj.h | 1 | ||||
-rw-r--r-- | src/lib/asn1/asn1_str.cpp | 3 |
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)); } |