apps/apps.c: initialize and de-initialize engine around key loading
authorRichard Levitte <levitte@openssl.org>
Wed, 28 Sep 2016 19:28:00 +0000 (21:28 +0200)
committerRichard Levitte <levitte@openssl.org>
Wed, 28 Sep 2016 19:45:17 +0000 (21:45 +0200)
commit49e476a5382602d0bad1139d6f1f66ddbc7959d6
tree9932cc09652a45a5c51b7ead102089e1542de9fc
parent56e36bdaef442536681bce2a1579385c0279bec8
apps/apps.c: initialize and de-initialize engine around key loading

Before loading a key from an engine, it may need to be initialized.
When done loading the key, we must de-initialize the engine.
(if the engine is already initialized somehow, only the reference
counter will be incremented then decremented)

Reviewed-by: Stephen Henson <steve@openssl.org>
apps/apps.c