aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/asn1/asn1_str.cpp7
-rw-r--r--src/core/policy.cpp1
2 files changed, 2 insertions, 6 deletions
diff --git a/src/asn1/asn1_str.cpp b/src/asn1/asn1_str.cpp
index 52dcdc55e..eadc7a75d 100644
--- a/src/asn1/asn1_str.cpp
+++ b/src/asn1/asn1_str.cpp
@@ -8,7 +8,6 @@
#include <botan/ber_dec.h>
#include <botan/charset.h>
#include <botan/parsing.h>
-#include <botan/libstate.h>
namespace Botan {
@@ -78,8 +77,7 @@ ASN1_String::ASN1_String(const std::string& str, ASN1_Tag t) : tag(t)
iso_8859_str = Charset::transcode(str, LOCAL_CHARSET, LATIN1_CHARSET);
if(tag == DIRECTORY_STRING)
- tag = choose_encoding(iso_8859_str,
- global_state().option("x509/ca/str_type"));
+ tag = choose_encoding(iso_8859_str, "latin1");
if(tag != NUMERIC_STRING &&
tag != PRINTABLE_STRING &&
@@ -98,8 +96,7 @@ ASN1_String::ASN1_String(const std::string& str, ASN1_Tag t) : tag(t)
ASN1_String::ASN1_String(const std::string& str)
{
iso_8859_str = Charset::transcode(str, LOCAL_CHARSET, LATIN1_CHARSET);
- tag = choose_encoding(iso_8859_str,
- global_state().option("x509/ca/str_type"));
+ tag = choose_encoding(iso_8859_str, "latin1");
}
/*************************************************
diff --git a/src/core/policy.cpp b/src/core/policy.cpp
index f1c844017..606250690 100644
--- a/src/core/policy.cpp
+++ b/src/core/policy.cpp
@@ -221,7 +221,6 @@ void set_default_config(Library_State& config)
config.set_option("x509/ca/allow_ca", "false");
config.set_option("x509/ca/basic_constraints", "always");
config.set_option("x509/ca/rsa_hash", "SHA-1");
- config.set_option("x509/ca/str_type", "latin1");
config.set_option("x509/crl/unknown_critical", "ignore");
config.set_option("x509/crl/next_update", "7d");