A number of corrections of the aep engine implementation:
authorRichard Levitte <levitte@openssl.org>
Thu, 7 Feb 2002 22:04:30 +0000 (22:04 +0000)
committerRichard Levitte <levitte@openssl.org>
Thu, 7 Feb 2002 22:04:30 +0000 (22:04 +0000)
commited2f196afea5ff12a4a0e74ed0fbd843f92d9937
treeea04ed662c605c4813ccf09aa7d3e196fe188c3d
parentb860878edcadee7eb6cba2f78dfc759f07974da7
A number of corrections of the aep engine implementation:

1. rnd_reference was a duplication of the work the the engine
   framework does, and wasn't ever checked.  Removed.
2. use the NO_ macros to disable appropriate algorithms.
3. Only implement the RNG stuff if AEPRAND is defined (default: not
   defined, because the AEP people plan on having boards without it.
   I'll see if I can device a more dynamic way of disabling this).
4. aep_finish() now closes all connections, and if that worked, does a
   proper finalize.
5. proper AEP types are used to conform to the AEP definitions of
   their own functions.
6. remake the use of thread locks.  The use of CRYPTO_LOCK_DYNLOCK was
   definitely inappropriate, and for random generator stuff, it's
   better to use CRYPTO_LOCK_RAND.

Also, I applied certain changes that were provided by the AEP people.
Among others, BN_CTX_new() is not used to initialise a BN context
(this was never done before, and may have made things slower or not
working at all.
crypto/engine/Makefile.ssl
crypto/engine/engine.h
crypto/engine/engine_err.c
crypto/engine/hw_aep.c
crypto/engine/vendor_defns/aep.h