diff options
author | Rene Meusel <[email protected]> | 2017-10-15 12:15:30 +0200 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-11-09 16:05:17 -0500 |
commit | 6818b78851c930f2e6747c9a40187bec88720d7b (patch) | |
tree | a6a8318e0c27c3d2fa14e93bd75a68d2bf55fa91 /src | |
parent | 1e7da7016ce09dc68b1fa090223b95cd77aa5135 (diff) |
add coding clarifications
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/asn1/asn1_str.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lib/asn1/asn1_str.cpp b/src/lib/asn1/asn1_str.cpp index 43331d414..e6cb229a6 100644 --- a/src/lib/asn1/asn1_str.cpp +++ b/src/lib/asn1/asn1_str.cpp @@ -125,11 +125,15 @@ void ASN1_String::decode_from(BER_Decoder& source) Character_Set charset_is; - if(obj.type_tag == BMP_STRING) + if(obj.type_tag == BMP_STRING) // Basic Multilingual Plane - 2 byte encoding charset_is = UCS2_CHARSET; else if(obj.type_tag == UTF8_STRING) charset_is = UTF8_CHARSET; - else + else // IA5_STRING - international ASCII characters + // T61_STRING - pretty much ASCII + // PRINTABLE_STRING - ASCII subset (a-z, A-Z, ' () +,-.?:/= and SPACE) + // VISIBLE_STRING - visible ASCII subset + // NUMERIC_STRING - ASCII subset (0-9 and SPACE) charset_is = LATIN1_CHARSET; *this = ASN1_String( |