diff options
Diffstat (limited to 'src/asn1_str.cpp')
-rw-r--r-- | src/asn1_str.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/asn1_str.cpp b/src/asn1_str.cpp index 79c7933f7..00e75c6be 100644 --- a/src/asn1_str.cpp +++ b/src/asn1_str.cpp @@ -46,7 +46,8 @@ ASN1_Tag choose_encoding(const std::string& str) for(u32bit j = 0; j != str.size(); ++j) if(!IS_PRINTABLE[(byte)str[j]]) { - const std::string type = Config::get_string("x509/ca/str_type"); + const std::string type = global_config().option("x509/ca/str_type"); + if(type == "utf8") return UTF8_STRING; if(type == "latin1") return T61_STRING; throw Invalid_Argument("Bad setting for x509/ca/str_type: " + type); |