diff options
author | lloyd <[email protected]> | 2006-07-01 21:09:54 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2006-07-01 21:09:54 +0000 |
commit | 6d3a4de1efcb6b04a1ab87037d487f979d7ca445 (patch) | |
tree | 02342b193a3808d2010b441480f65aa45a23dc92 /src/asn1_str.cpp | |
parent | 3d1d14cf405111e30643cf4c7674d441cc07a2e0 (diff) |
Access the global configuration through an object reference instead
of stand-alone functions. Store the configuration in a distinct
object, rather than just a map inside the library state.
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); |