aboutsummaryrefslogtreecommitdiffstats
path: root/src/init_def.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Change the copyrights in all files in the Botan tree to directly reflectlloyd2008-04-101-1/+1
| | | | | | the actual copyright holders. For rationale, see my post to botan-devel on April 9, subject 'Changing license to directly reflect contributors' (http://www.randombit.net/pipermail/botan-devel/2008-April/000527.html)
* Mostly revert 2f4fd18182d5a75c40cd831e7ee3c314be5c57d6, only keep thelloyd2008-03-101-1/+1
| | | | | updated dates on files that have actually changed this year. This makes the diff across versions readable again.
* Mass update of the copyright date. Honestly I don't know why I bother,lloyd2008-02-141-1/+1
| | | | | | | but might as well keep it up to date. And it's easier to do it once with a 'perl -pi' command than to update each file over time. Apologies to anyone looking at diffs.
* Move the self tests from LibraryInitializer::initialize tolloyd2007-10-151-7/+0
| | | | | Library_State::initialize: now the LibraryInitializer is just a simple wrapper to create/destroy the state with no other operations.
* The last checkin did not work; the Library_State constructor called code1.7.2lloyd2007-10-131-1/+3
| | | | | | | | that called global_state(), which cased an infinite recursion. Make creating a Library_State a two-phase operation, first an empty constructor (just sets all pointers to NULL), then an initializer that sets up everything needed to start up the library.
* Move most of the initializer code directly into the Library_State constructorlloyd2007-10-131-49/+22
|
* Bump copyright year to 2007lloyd2007-01-201-1/+1
|
* Remove needless try/catch blocklloyd2006-12-141-10/+2
|
* Simplify the initial RNG seeding operationlloyd2006-09-211-18/+7
|
* Make the initialization/deinitialization functions static members oflloyd2006-09-201-21/+17
| | | | | | | the LibraryInitializer class, rather than global functions floating around inside the Init namespace. Allow callers to provide an alternative Modules object.
* If an exception is thrown anywhere inside Init::initialize, catch itlloyd2006-08-091-34/+39
| | | | | and force a deinitialization before throwing it further up the call stack.
* Change Builtin_Module constructor to take an InitializerOptionslloyd2006-07-281-17/+23
| | | | | | | | instead of just a boolean, so it can (if desired) examine any arguments it likes. Only run the startup self tests if the selftest or fips140 option is toggled on.
* Add a LibraryInitializer constructor taking a std::string, which simplylloyd2006-07-121-0/+9
| | | | calls the InitializerOptions constructor.
* Make Mutex_Factory an abstract class, move the creation of the no-oplloyd2006-07-071-1/+5
| | | | Default_Mutex to the new Default_Mutex_Factory
* Have Library_State's constructor thrown an exception if thelloyd2006-07-071-9/+3
| | | | | | | | mutex_factory argument is NULL. Have Init::initialize() pass either a new Mutex_Factory (the default no-op version), or the result of modules.mutex_factory(), depending on the value of args.thread_safe()
* Respect the secure_memory config optionlloyd2006-07-021-1/+1
|
* Move InitializerOptions out of the Init namespacelloyd2006-07-021-4/+3
| | | | | Alter the initialization functions to take an InitializerOptions object instead of a std::string
* Let modules override the transcoder object (since system libslloyd2006-07-011-1/+0
| | | | like iconv may be useful there...)
* Fix config handling (stupid mismatch was causing the getter for thelloyd2006-07-011-4/+2
| | | | | | config options to always fail). Move the default config stuff from libstate to the config object.
* Just some small cleanups / variable renameslloyd2006-07-011-6/+9
|
* Access the global configuration through an object reference insteadlloyd2006-07-011-2/+3
| | | | | of stand-alone functions. Store the configuration in a distinct object, rather than just a map inside the library state.
* Clean up initialization a little bit morelloyd2006-07-011-8/+3
|
* Various changes to how library initialization occurs, though I'm stilllloyd2006-06-261-11/+3
| | | | not completely happy with it.
* Support named mutexes outside of the global library state.lloyd2006-06-251-0/+2
| | | | | | Alter the AEP engine to use one in favor of a static Mutex pointer. Fix a stupid typo in an exception message.
* Change how builtin modules are loaded - provide an interface to alloyd2006-06-251-61/+17
| | | | | factory class. Currently hardcoded (Builtin_Modules, instantiated in init_def.cpp), but this will allow for some flexibility later on.
* Have allocator objects 'know' their own names, rather than keeping themlloyd2006-06-251-6/+6
| | | | around as ancillary strings.
* Remove the to_lower function; turns out that both uses of itlloyd2006-06-191-0/+3
| | | | | | | | | | | | | | | 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.
* Initial checkin1.5.6lloyd2006-05-181-0/+149