Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Change Builtin_Module constructor to take an InitializerOptions | lloyd | 2006-07-28 | 2 | -17/+31 |
| | | | | | | | | 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 "selftest" option that allows the user to disable startup selftests | lloyd | 2006-07-28 | 1 | -0/+8 |
| | |||||
* | Remove unneccessary includes | lloyd | 2006-07-28 | 1 | -2/+0 |
| | |||||
* | Add two more constructors to AlgorithmIdentifier, which take a | lloyd | 2006-07-22 | 1 | -4/+36 |
| | | | | | | Encoding_Option enum that can specify various options. Right now the only one supported/available is USE_NULL_PARAM, to set the parameters to a DER-encoded NULL object | ||||
* | Remove a declaration for add_alias, which was removed at some point | lloyd | 2006-07-16 | 2 | -37/+45 |
| | | | | | | | | | without the decl also being removed. Add an add_alias function to the Config class, just a simple wrapper around Config::set Change policy.cpp to use add_alias instead of set when setting an alias | ||||
* | Extend the language offered by InitializerOptions a bit, so that | lloyd | 2006-07-13 | 1 | -13/+44 |
| | | | | | | boolean options can be explicitly turned off. Add support for checking the documented "fips140" argument | ||||
* | Add a LibraryInitializer constructor taking a std::string, which simply | lloyd | 2006-07-12 | 1 | -0/+9 |
| | | | | calls the InitializerOptions constructor. | ||||
* | Make Mutex_Factory an abstract class, move the creation of the no-op | lloyd | 2006-07-07 | 2 | -2/+6 |
| | | | | Default_Mutex to the new Default_Mutex_Factory | ||||
* | Remove a line that should have been deleted in the last commit. | lloyd | 2006-07-07 | 1 | -1/+0 |
| | |||||
* | Have Library_State's constructor thrown an exception if the | lloyd | 2006-07-07 | 2 | -10/+5 |
| | | | | | | | | 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 option | lloyd | 2006-07-02 | 2 | -1/+9 |
| | |||||
* | Move InitializerOptions out of the Init namespace | lloyd | 2006-07-02 | 2 | -8/+3 |
| | | | | | Alter the initialization functions to take an InitializerOptions object instead of a std::string | ||||
* | Add del_fun and delete2nd functions for running deletes | lloyd | 2006-07-02 | 1 | -8/+7 |
| | | | | Use for_each + the delete wrappers in libstate.cpp | ||||
* | Let modules override the transcoder object (since system libs | lloyd | 2006-07-01 | 3 | -1/+10 |
| | | | | like iconv may be useful there...) | ||||
* | Fix config handling (stupid mismatch was causing the getter for the | lloyd | 2006-07-01 | 3 | -11/+8 |
| | | | | | | config options to always fail). Move the default config stuff from libstate to the config object. | ||||
* | Just some small cleanups / variable renames | lloyd | 2006-07-01 | 1 | -6/+9 |
| | |||||
* | Make choose_sig_format a static member of Config rather than | lloyd | 2006-07-01 | 3 | -27/+14 |
| | | | | a standalone function. | ||||
* | Access the global configuration through an object reference instead | lloyd | 2006-07-01 | 24 | -359/+386 |
| | | | | | 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 more | lloyd | 2006-07-01 | 3 | -33/+74 |
| | |||||
* | More config.h fixes | lloyd | 2006-07-01 | 6 | -6/+6 |
| | |||||
* | More config.h include fixes | lloyd | 2006-07-01 | 3 | -3/+3 |
| | |||||
* | Fix more config.h includes | lloyd | 2006-07-01 | 4 | -4/+4 |
| | |||||
* | Fix config.h includes | lloyd | 2006-07-01 | 5 | -5/+5 |
| | |||||
* | Rename conf.* to config.* | lloyd | 2006-07-01 | 1 | -0/+0 |
| | |||||
* | Various changes to how library initialization occurs, though I'm still | lloyd | 2006-06-26 | 3 | -87/+33 |
| | | | | not completely happy with it. | ||||
* | Fix compile error | lloyd | 2006-06-26 | 1 | -1/+2 |
| | |||||
* | Use X509_Object::make_signed, rather than running through the process | lloyd | 2006-06-25 | 1 | -10/+1 |
| | | | | manually. | ||||
* | Remove an implementation of make_signed from x509_ca.cpp, instead | lloyd | 2006-06-25 | 1 | -20/+4 |
| | | | | using the version in X509_Object. | ||||
* | Add a static make_signed function to X509_Object | lloyd | 2006-06-25 | 1 | -0/+16 |
| | |||||
* | Support named mutexes outside of the global library state. | lloyd | 2006-06-25 | 3 | -43/+49 |
| | | | | | | Alter the AEP engine to use one in favor of a static Mutex pointer. Fix a stupid typo in an exception message. | ||||
* | Missed some variables in the last commit. | lloyd | 2006-06-25 | 1 | -11/+11 |
| | |||||
* | Rename some variables to make operation a little more obvious | lloyd | 2006-06-25 | 1 | -8/+8 |
| | |||||
* | Change how builtin modules are loaded - provide an interface to a | lloyd | 2006-06-25 | 2 | -71/+75 |
| | | | | | factory class. Currently hardcoded (Builtin_Modules, instantiated in init_def.cpp), but this will allow for some flexibility later on. | ||||
* | Guard set_timer with a check so it does not set the timer to NULL | lloyd | 2006-06-25 | 1 | -2/+5 |
| | |||||
* | Add a set_timer method to Library_State, and rearrange the order | lloyd | 2006-06-25 | 1 | -7/+14 |
| | | | | of initialization in the constructor. | ||||
* | Add a class that encapsulates the options given at initialization time | lloyd | 2006-06-25 | 1 | -0/+76 |
| | |||||
* | Have allocator objects 'know' their own names, rather than keeping them | lloyd | 2006-06-25 | 3 | -11/+13 |
| | | | | around as ancillary strings. | ||||
* | Make Library_State::x509_state() non-const to support lazy initialiation. | lloyd | 2006-06-25 | 1 | -1/+1 |
| | |||||
* | Have system_clock return 0, rather than crash, if no timer is set | lloyd | 2006-06-25 | 1 | -7/+7 |
| | | | | | | Initialize the X.509 global state object lazily, on first access Alter the order that global objects are deleted. | ||||
* | Make set_global_state a little more elegant, by having it delete | lloyd | 2006-06-25 | 1 | -2/+1 |
| | | | | | the return value of swap_global_state rather than manipulate the state object directly. | ||||
* | Respect configuration parameters for if an extension should be | lloyd | 2006-06-25 | 1 | -2/+14 |
| | | | | marked critical in a new certificate. | ||||
* | Remove a function in Certificate_Extension that was declared but | lloyd | 2006-06-25 | 1 | -2/+6 |
| | | | | | | | | | never defined. Remove all current support in Certificate_Extension for marking extensions critical - it was basically unused. Will be replaced by something that uses config_id() along with the user-modifiable policy settings. | ||||
* | Remove the older version of X509_CA::make_cert entirely | lloyd | 2006-06-25 | 1 | -32/+10 |
| | |||||
* | Alter the self-signed cert generating code to use the new version | lloyd | 2006-06-25 | 1 | -4/+13 |
| | | | | of X509_CA::make_cert | ||||
* | Add a new variant of X509_CA::make_cert that takes an Extensions object, | lloyd | 2006-06-25 | 1 | -0/+18 |
| | | | | | rather than creating it internally. The older version (still used internally) creates the Extensions object as before and passes it on. | ||||
* | Remove Extension::make_extension, use the global extension prototypes | lloyd | 2006-06-24 | 2 | -32/+6 |
| | | | | to create extensions as needed. | ||||
* | Add a complete set of extension object prototypes to the global | lloyd | 2006-06-24 | 1 | -29/+20 |
| | | | | state. | ||||
* | Add error checking to x509_state() | lloyd | 2006-06-24 | 1 | -1/+5 |
| | | | | | Initialize the X509_GlobalState pointer during Library_State construction. | ||||
* | Add an X509_GlobalState pointer to the library state. | lloyd | 2006-06-24 | 3 | -6/+100 |
| | | | | Initial implementation of a factory for extension objects | ||||
* | Small cleanup to Authority_Key_Identifier::decode_inner | lloyd | 2006-06-24 | 1 | -2/+3 |
| |