diff options
author | lloyd <[email protected]> | 2015-02-04 04:03:38 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2015-02-04 04:03:38 +0000 |
commit | 0dd060fed07b0060f94e3bae62e125a85c1bb877 (patch) | |
tree | ed4bc7a961e2b30f17ed5e80769c84b0c313c8b7 /src/contrib | |
parent | f9a7c85b74be0f4a7273e8e0591703af83036e81 (diff) |
Remove algo factory, engines, global RNG, global state, etc.
Convert all uses of Algorithm_Factory and the engines to using Algo_Registry
The shared pool of entropy sources remains but is moved to EntropySource.
With that and few remaining initializations (default OIDs and aliases)
moved elsewhere, the global state is empty and init and shutdown are no-ops.
Remove almost all of the headers and code for handling the global
state, except LibraryInitializer which remains as a compatability stub.
Update seeding for blinding so only one hacky almost-global RNG
instance needs to be setup instead of across all pubkey uses (it uses
either the system RNG or an AutoSeeded_RNG if the system RNG is not
available).
Diffstat (limited to 'src/contrib')
-rw-r--r-- | src/contrib/perl-xs/Botan.xs | 7 | ||||
-rw-r--r-- | src/contrib/sqlite/codec.cpp | 2 |
2 files changed, 0 insertions, 9 deletions
diff --git a/src/contrib/perl-xs/Botan.xs b/src/contrib/perl-xs/Botan.xs index 135da0d5d..375f73830 100644 --- a/src/contrib/perl-xs/Botan.xs +++ b/src/contrib/perl-xs/Botan.xs @@ -14,7 +14,6 @@ extern "C" { #include <botan/asn1_alt_name.h> #include <botan/asn1_oid.h> #include <botan/filters.h> -#include <botan/init.h> #include <botan/oids.h> #include <botan/x509cert.h> #include <botan/x509_ext.h> @@ -70,12 +69,6 @@ public: ObjectInfo const oi_init; -/* Botan library initializer ... */ - -Botan::LibraryInitializer botan_init; - - - /*============================================================================*/ MODULE = Botan PACKAGE = Botan diff --git a/src/contrib/sqlite/codec.cpp b/src/contrib/sqlite/codec.cpp index c4e6c8db7..4a13d3dde 100644 --- a/src/contrib/sqlite/codec.cpp +++ b/src/contrib/sqlite/codec.cpp @@ -6,7 +6,6 @@ */ #include "codec.h" -#include <botan/init.h> Codec::Codec(void *db) { @@ -155,7 +154,6 @@ const char* Codec::GetAndResetError() #include "codec_c_interface.h" void InitializeBotan() { - LibraryInitializer::initialize(); } void* InitializeNewCodec(void *db) { return new Codec(db); |