diff options
author | lloyd <[email protected]> | 2008-06-30 02:28:47 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-06-30 02:28:47 +0000 |
commit | a01d19fd314804f3466737b3c6314bec0d511990 (patch) | |
tree | 7d8e24004d0d9c7a8852a2faa1f8c0612eee90dd /src/x509_ca.cpp | |
parent | 954e01df3c99836d13f2a188193b0bdbf660856a (diff) |
Remove the Config class.
In reality, Config was a singleton, with the only owner being the
Library_State object. Theoretically one could create and use another Config
instance, but in practice it was never done. Reflect the reality and inline
the members and public functions of Config in Library_State, removing Config
entirely.
Diffstat (limited to 'src/x509_ca.cpp')
-rw-r--r-- | src/x509_ca.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/x509_ca.cpp b/src/x509_ca.cpp index 24cc35a74..d455e4988 100644 --- a/src/x509_ca.cpp +++ b/src/x509_ca.cpp @@ -8,7 +8,6 @@ #include <botan/der_enc.h> #include <botan/ber_dec.h> #include <botan/libstate.h> -#include <botan/config.h> #include <botan/lookup.h> #include <botan/look_pk.h> #include <botan/numthry.h> @@ -258,14 +257,14 @@ PK_Signer* choose_sig_format(const Private_Key& key, if(hash == "") throw Invalid_State("No value set for x509/ca/rsa_hash"); - hash = global_state().config().deref_alias(hash); + hash = global_state().deref_alias(hash); padding = "EMSA3(" + hash + ")"; format = IEEE_1363; } else if(algo_name == "DSA") { - std::string hash = global_state().config().deref_alias("SHA-1"); + std::string hash = global_state().deref_alias("SHA-1"); padding = "EMSA1(" + hash + ")"; format = DER_SEQUENCE; } |