We had the password callback for ENGINEs pretty much wrong. And
authorRichard Levitte <levitte@openssl.org>
Fri, 25 May 2001 21:08:56 +0000 (21:08 +0000)
committerRichard Levitte <levitte@openssl.org>
Fri, 25 May 2001 21:08:56 +0000 (21:08 +0000)
commit6c1a3e4f5834a117334a0baa36a1d839e2682cca
tree4fe3e655c1b24ac744201a25862db48840448523
parent76c919c1a3751df1747fc67620263d663c9b7ba1
We had the password callback for ENGINEs pretty much wrong.  And
passwords that were given to the key loading functions were completely
ignored, at least in the ncipher code, and then we made the assumption
that the callback wanted a prompt as user argument.

All that is now changed, and the application author is forced to give
a callback function of type pem_callback_cb and possibly an argument
for it, just as for all other functions that want to generate password
prompting.

NOTE: this change creates binary and source incompatibilities with
previous versions of OpenSSL [engine].  It's worth it this time, to
get it right (or at least better and with a chance that it'll work).
crypto/engine/engine.h
crypto/engine/engine_lib.c
crypto/engine/hw_ncipher.c