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:21:59 +0000 (20:21 +0100)
commit458c7dad9e3f59490fb0908c1a27ca39e4cf38dd
tree8c0dd60cca6d29aded6c1e87ff353c869a58be4e
parent28ac1bd9a97d9725273956e26d89ccfa5b4de67b
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)
crypto/engine/eng_devcrypto.c