diff options
author | lloyd <[email protected]> | 2006-06-19 09:20:23 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2006-06-19 09:20:23 +0000 |
commit | 69ca3d65b82ab041e8df85ca3f4e63e669557607 (patch) | |
tree | 23005899d23998ada689d4babd2bfccb4d520dbe /src/init_def.cpp | |
parent | 6413b5d29a781a231d2f331e4191b68fb88a27d9 (diff) |
Remove the to_lower function; turns out that both uses of it
within the library were to perform case-insensitive matching, so
simply implement that instead.
Place all of the character set handling functions into a Charset
namespace (and update all callers).
Remove the iso2local/local2iso/iso2utf/utf2iso functions, replaced
by the new charset transcoder stuff.
Initialize the transcoder stored in the global library state
upon initialization.
Diffstat (limited to 'src/init_def.cpp')
-rw-r--r-- | src/init_def.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/init_def.cpp b/src/init_def.cpp index 3b071d7eb..9d07d730b 100644 --- a/src/init_def.cpp +++ b/src/init_def.cpp @@ -12,6 +12,7 @@ #include <botan/eng_def.h> #include <botan/fips140.h> #include <botan/x931_rng.h> +#include <botan/def_char.h> namespace Botan { @@ -107,6 +108,8 @@ void initialize(const std::string& arg_string) } global_state().add_engine(new Default_Engine); + global_state().set_transcoder(new Default_Charset_Transcoder); + global_state().set_prng(new ANSI_X931_RNG); std::vector<EntropySource*> sources = Modules::get_entropy_sources(); for(u32bit j = 0; j != sources.size(); ++j) |