aboutsummaryrefslogtreecommitdiffstats
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* Move InitializerOptions out of the Init namespacelloyd2006-07-021-11/+12
| | | | | Alter the initialization functions to take an InitializerOptions object instead of a std::string
* Add del_fun and delete2nd functions for running deleteslloyd2006-07-021-0/+19
| | | | Use for_each + the delete wrappers in libstate.cpp
* Let modules override the transcoder object (since system libslloyd2006-07-011-0/+2
| | | | like iconv may be useful there...)
* Fix config handling (stupid mismatch was causing the getter for thelloyd2006-07-012-2/+3
| | | | | | config options to always fail). Move the default config stuff from libstate to the config object.
* Make choose_sig_format a static member of Config rather thanlloyd2006-07-011-11/+4
| | | | a standalone function.
* Access the global configuration through an object reference insteadlloyd2006-07-013-23/+28
| | | | | 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-012-10/+21
|
* Fix botan.h to include config.h instead of conf.hlloyd2006-07-011-1/+1
|
* Rename conf.* to config.*lloyd2006-07-011-0/+0
|
* Modify types.h to include build.h instead of config.hlloyd2006-07-011-1/+1
|
* Various changes to how library initialization occurs, though I'm stilllloyd2006-06-262-12/+9
| | | | not completely happy with it.
* Add a static make_signed function to X509_Objectlloyd2006-06-251-0/+4
|
* Support named mutexes outside of the global library state.lloyd2006-06-252-5/+18
| | | | | | 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-16/+26
| | | | | factory class. Currently hardcoded (Builtin_Modules, instantiated in init_def.cpp), but this will allow for some flexibility later on.
* Fix two declarations that were incorrect.lloyd2006-06-251-2/+2
|
* Add a set_timer method to Library_State, and rearrange the orderlloyd2006-06-251-0/+1
| | | | of initialization in the constructor.
* Add a class that encapsulates the options given at initialization timelloyd2006-06-251-0/+18
|
* Have allocator objects 'know' their own names, rather than keeping themlloyd2006-06-254-3/+6
| | | | around as ancillary strings.
* Make Library_State::x509_state() non-const to support lazy initialiation.lloyd2006-06-251-1/+1
|
* Remove a function in Certificate_Extension that was declared butlloyd2006-06-251-7/+0
| | | | | | | | | 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 entirelylloyd2006-06-251-10/+0
|
* Add a new variant of X509_CA::make_cert that takes an Extensions object,lloyd2006-06-251-0/+6
| | | | | 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 prototypeslloyd2006-06-242-4/+1
| | | | to create extensions as needed.
* Add an X509_GlobalState pointer to the library state.lloyd2006-06-242-1/+40
| | | | Initial implementation of a factory for extension objects
* Add a swap_global_state, to allow the use of multiplelloyd2006-06-241-0/+1
| | | | simultaneous library states.
* Drop the old Extension type, which is now no longer used.lloyd2006-06-231-18/+0
|
* Use accessor functions for CRL_Entry, instead of having public datalloyd2006-06-231-2/+8
|
* Use Extensions instead of handle_crl_extension in X509_CRLlloyd2006-06-231-2/+0
| | | | Fix the definition of crl_number
* The decode_from taking a bool wasn't actually usable, don'tlloyd2006-06-231-2/+2
| | | | | | | know why I thought it would work (that function is only called through the interface presented to the BER/DER codecs). Instead, pass a bool to the constructor.
* Use Data_Store in X509_CRLlloyd2006-06-231-4/+2
|
* Use the Extensions class, remove PKCS10_Request::handle_v3_extensionlloyd2006-06-231-1/+0
|
* Move all the members of PKCS10_Request into a Data_Storelloyd2006-06-231-8/+2
|
* Make create_dn (from x509cert.cpp) a public function. Add alloyd2006-06-231-0/+6
| | | | | create_alt_name that performs the same sort of extraction for alternative names.
* Add a new variant of Extensions::decode_from that doesn't thrown anlloyd2006-06-231-0/+1
| | | | exception if it finds an unknown critical extension.
* Drop X509_Certificate::handle_v3_extension, since that code islloyd2006-06-231-2/+1
| | | | now handled by the Extensions class
* Make Alternative_Name an abstract base, from which the subjectlloyd2006-06-231-5/+30
| | | | | | | | | | | | and issuer forms are derived. Add Extensions::contents_to, which iterates over the set and adds each extension's contents. Add a new explicit info field for is_ca Implement Authority_Key_Id::decode_inner (incomplete, only handles the keyid form).
* Add operator= and a copy constructor to Extensionslloyd2006-06-221-17/+29
| | | | | | | Add a copy() function to Certificate_Policies Turn make_extension from an anonymous namespace function to a static private function of Extensions
* Add accessor and cloning functions to the Certificate_Extension objectslloyd2006-06-221-2/+39
|
* Add a UCS2_CHARSET enumeration valuelloyd2006-06-191-1/+6
|
* Remove the to_lower function; turns out that both uses of itlloyd2006-06-191-7/+7
| | | | | | | | | | | | | | | 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.
* Add default character set conversion classeslloyd2006-06-191-0/+25
|
* Add some initial support for centralized/user-pluggable characterlloyd2006-06-133-0/+20
| | | | set conversions, to replace the current hardcoded stuff.
* Move the X509_Code enum from enums.h to x509stor.h, since that'slloyd2006-06-132-28/+28
| | | | the only place it is used.
* Add some setter methods to X509_Timelloyd2006-06-111-0/+3
|
* Remove some #include's that were just there for debugging purposes.lloyd2006-06-081-3/+0
|
* Move the word3_muladd routines from mp_asm.h to mp_asmi.h, so theylloyd2006-06-082-26/+31
| | | | | | can make use of word_add Update mp_comba.cpp to include the needed header.
* Revert the last change; it turned out to require a bunch of changes to thelloyd2006-06-062-39/+32
| | | | | | assembly code in order to handle the argument aliasing correctly, and it seems I don't understand GCC's extended asm syntax well enough to figure out how to get it work in a way that isn't hideous.
* Remove one parameter from word_madd2 and word_madd3lloyd2006-06-062-32/+39
|
* Use b instead of a as a temp variable in word3_muladd to betterlloyd2006-06-061-3/+3
| | | | match the code in word3_muladd_2
* Change X509_Certificate::subject_info and issuer_info to returnlloyd2006-06-031-8/+6
| | | | | | | | | a vector of strings instead of a single string that combines the relevent fields. Change how X509_Certificate stores information. Renamed self_signed() to is_self_signed()