crypto/engine/eng_devcrypto.c: open /dev/crypto only once
authorRichard Levitte <levitte@openssl.org>
Wed, 31 Oct 2018 18:23:44 +0000 (19:23 +0100)
committerRichard Levitte <levitte@openssl.org>
Fri, 2 Nov 2018 19:24:00 +0000 (20:24 +0100)
commit120fc33e29957864168dd3693df5992b62e58c04
tree204ac8309ad8c8a7fe609260ba3afaafd00813ff
parentdcbbcf083c562b99e5a71429f7f35d7f171fc462
crypto/engine/eng_devcrypto.c: open /dev/crypto only once

We opened /dev/crypto once for each session, which is quite unnecessary.
With this change, we open /dev/crypto once at engine init, and close
it on unload.

Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
(Merged from https://github.com/openssl/openssl/pull/7506)

(cherry picked from commit 458c7dad9e3f59490fb0908c1a27ca39e4cf38dd)
crypto/engine/eng_devcrypto.c