aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/engine/eng_list.c
Commit message (Collapse)AuthorAgeFilesLines
* improve comment: use "optimization" for clarityJosh Soref2017-06-111-2/+2
| | | | | | | The previous word was a misspelling of nicety Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/3464)
* Add support for reference counting using C11 atomicsKurt Roeckx2016-11-171-1/+1
| | | | | | | Reviewed-by: Andy Polyakov <appro@openssl.org> Reviewed-by: Rich Salz <rsalz@openssl.org> GH: #1500
* Change all our uses of CRYPTO_THREAD_run_once to use RUN_ONCE insteadRichard Levitte2016-07-191-3/+15
| | | | | | | That way, we have a way to check if the init function was successful or not. Reviewed-by: Kurt Roeckx <kurt@openssl.org>
* Copyright consolidation 09/10Rich Salz2016-05-171-54/+6
| | | | Reviewed-by: Richard Levitte <levitte@openssl.org>
* Rename int_*() functions to *_int()Matt Caswell2016-04-131-1/+1
| | | | | | | | | | There is a preference for suffixes to indicate that a function is internal rather than prefixes. Note: the suffix is only required to disambiguate internal functions and public symbols with the same name (but different case) Reviewed-by: Tim Hudson <tjh@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org>
* Rename lots of *_intern or *_internal function to int_*Matt Caswell2016-04-131-1/+1
| | | | | | | | There was a lot of naming inconsistency, so we try and standardise on one form. Reviewed-by: Tim Hudson <tjh@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org>
* Deprecate ENGINE_cleanup() and make it a no-opMatt Caswell2016-04-131-1/+1
| | | | | | | | ENGINE_cleanup() should not be called expicitly - we should leave auto-deinit to clean this up instead. Reviewed-by: Tim Hudson <tjh@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org>
* Move engine library over to using the new thread APIMatt Caswell2016-03-091-16/+20
| | | | | | Remove usage of CRYPTO_LOCK_ENGINE Reviewed-by: Richard Levitte <levitte@openssl.org>
* Configure et al: move the installation directory logic to MakefilesRichard Levitte2016-02-101-5/+0
| | | | | | | | | | | | | | | | | | | | The logic to figure out the combinations of --prefix and --openssldir has stayed in Configure so far, with Unix paths as defaults. However, since we're making Configure increasingly platform agnostic, these defaults need to change and adapt to the platform, along with the logic to combine them. The easiest to provide for this is to move the logic and the defaults away from Configure and into the build files. This also means that the definition of the macros ENGINESDIR and OPENSSLDIR move away from include/openssl/opensslconf.h and into the build files. Makefile.in is adapted accordingly. Reviewed-by: Rich Salz <rsalz@openssl.org>
* Remove store.Rich Salz2016-02-101-1/+0
| | | | | | | Rebased and merged by me, with Ben's approval. Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Ben Laurie <ben@openssl.org>
* GH601: Various spelling fixes.FdaSilvaYY2016-02-051-2/+2
| | | | | Signed-off-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org>
* fix code indentation issueFdaSilvaYY2016-02-021-8/+8
| | | | | | | ... related to engine_ref_debug macro. Signed-off-by: Rich Salz <rsalz@akamai.com> Reviewed-by: Kurt Roeckx <kurt@openssl.org>
* Remove /* foo.c */ commentsRich Salz2016-01-261-1/+0
| | | | | | | | | | | | This was done by the following find . -name '*.[ch]' | /tmp/pl where /tmp/pl is the following three-line script: print unless $. == 1 && m@/\* .*\.[ch] \*/@; close ARGV if eof; # Close file to reset $. And then some hand-editing of other files. Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
* Engine EC_KEY_METHOD functionality.Dr. Stephen Henson2015-12-091-1/+1
| | | | | | | | Rename ENGINE _EC_KEY functions to _EC. Add support for EC_KEY_METHOD in ENGINE_set_default et al. Copy ec_meth. Reviewed-by: Richard Levitte <levitte@openssl.org>
* remove ECDSA_METHOD from ENGINEDr. Stephen Henson2015-12-091-1/+1
| | | | Reviewed-by: Richard Levitte <levitte@openssl.org>
* remove ECDH_METHOD from ENGINEDr. Stephen Henson2015-12-091-1/+0
| | | | Reviewed-by: Richard Levitte <levitte@openssl.org>
* Continue standardising malloc style for libcryptoMatt Caswell2015-11-091-3/+3
| | | | | | | Continuing from previous commit ensure our style is consistent for malloc return checks. Reviewed-by: Kurt Roeckx <kurt@openssl.org>
* When ENGINE_add finds that id or name is missing, actually returnRichard Levitte2015-10-081-0/+1
| | | | Reviewed-by: Matt Caswell <matt@openssl.org>
* Merge OPENSSL_NO_EC{DH,DSA} into OPENSSL_NO_ECRich Salz2015-03-111-3/+1
| | | | | | Suggested by John Foley <foleyj@cisco.com>. Reviewed-by: Matt Caswell <matt@openssl.org>
* Dead code cleanup; remove #if 0 from crypto/engineRich Salz2015-02-021-9/+0
| | | | Reviewed-by: Richard Levitte <levitte@openssl.org>
* Run util/openssl-format-source -v -c .Matt Caswell2015-01-221-324/+294
| | | | Reviewed-by: Tim Hudson <tjh@openssl.org>
* Add loaded dynamic ENGINEs to list.Dr. Stephen Henson2014-01-281-0/+1
| | | | | | Always add a dynamically loaded ENGINE to list. Otherwise it can cause problems when multiply loaded, especially if it adds new public key methods. For all current engines we only want a single implementation anyway.
* PR: 1813Dr. Stephen Henson2010-03-271-0/+1
| | | | | | Submitted by: Torsten Hilbrich <torsten.hilbrich@secunet.com> Fix memory leak when engine name cannot be loaded.
* Automatically free up dynamically allocated public key methods whenDr. Stephen Henson2006-06-021-0/+1
| | | | and ENGINE is destroyed.
* avoid infinite recursion if dynamic engine isn't loadedNils Larsch2005-08-061-10/+14
| | | | Submitted by: Jonathon Green <jonathon_au@yahoo.com>
* This fixes the installation target for dynamic engines, which was trying toGeoff Thorpe2004-06-011-1/+1
| | | | | | | install to a different location than it had created. (BTW, VMS will need a matching fix in eng_list.c.) Note, these aren't ssl-specific, so I'm putting "engines/" into the libs directory rather than at the "--prefix" level or inside "ssl/".
* (oops) Apologies all, that last header-cleanup commit was from the wrongGeoff Thorpe2004-04-191-3/+0
| | | | | tree. This further reduces header interdependencies, and makes some associated cleanups.
* Add STORE support in ENGINE.Richard Levitte2003-05-011-0/+1
|
* - Remo Inverardi noticed that ENGINEs don't have an "up_ref" function in theGeoff Thorpe2002-10-161-11/+22
| | | | | | | | | normal 'structural' case (ENGINE_init() satisfies this in the less normal 'functional' case). This change provides such a function. - Correct some "read" locks that should actually be "write" locks. - make update.
* Step 11c of move of engines: Time to make the changes to supportRichard Levitte2002-10-111-0/+24
| | | | | | | | | | automatic load of dynamic engines. Change the iterator to try to load the requested engine dynamically. The environment variable OPENSSL_ENGINES can be used to override the internal default directory where one can expect to find dynamically loadable engines. Note: The changes in step 11 have all been made by Geoff Thorpe. Credit where credit is due.
* Add ECDH support.Bodo Möller2002-08-091-0/+8
| | | | | | | | | | | | | Additional changes: - use EC_GROUP_get_degree() in apps/req.c - add ECDSA and ECDH to apps/speed.c - adds support for EC curves over binary fields to ECDSA - new function EC_KEY_up_ref() in crypto/ec/ec_key.c - reorganize crypto/ecdsa/ecdsatest.c - add engine support for ECDH - fix a few bugs in ECDSA engine support Submitted by: Douglas Stebila <douglas.stebila@sun.com>
* ECDSA supportBodo Möller2002-02-131-0/+3
| | | | Submitted by: Nils Larsch <nla@trustcenter.de>
* Initial ENGINE config module, docs to follow.Dr. Stephen Henson2002-01-211-0/+3
| | | | Fix buffer overrun errors in OPENSSL_conf().
* This change adds cipher and digest support into ENGINE using theGeoff Thorpe2001-09-251-0/+2
| | | | | ENGING_TABLE mechanism. The necessary hooks from crypto/evp/ to use this will be committed shortly.
* This change replaces the ENGINE's underlying mechanics with the newGeoff Thorpe2001-09-251-397/+76
| | | | | | | | | | | | | | | | | | | | | ENGINE_TABLE-based stuff - as described in crypto/engine/README. Associated miscellaneous changes; - the previous cipher/digest hooks that hardwired directly to EVP's OBJ_NAME-based storage have been backed out. New cipher/digest support has been constructed and will be committed shortly. - each implementation defines its own ENGINE_load_<name> function now. - the "openssl" ENGINE isn't needed or loaded any more. - core (not algorithm or class specific) ENGINE code has been split into multiple files to increase readability and decrease linker bloat. - ENGINE_cpy() has been removed as it wasn't really a good idea in the first place and now, because of registration issues, can't be meaningfully defined any more. - BN_MOD_EXP[_CRT] support is removed as per the README. - a bug in enginetest.c has been fixed. NB: This commit almost certainly breaks compilation until subsequent changes are committed.
* Some of the ENGINE file names were changed for 8.3 filename uniquenessGeoff Thorpe2001-09-141-2/+2
| | | | | recently. So comments including file names have been fixed, and copyright notices brought up to "2001" at the same time.
* Fix a typo in the preprocessor logic in eng_list.c that had left RSA, DSA,Geoff Thorpe2001-09-141-2/+2
| | | | and DH all conditional upon OPENSSL_NO_RSA.
* make engine file names unique in 8.3Ulf Möller2001-09-071-0/+699