Do not complain when /dev/crypto does not exist.
authorJung-uk Kim <jkim@FreeBSD.org>
Thu, 13 Dec 2018 23:18:16 +0000 (18:18 -0500)
committerDr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
Sun, 23 Dec 2018 07:32:43 +0000 (08:32 +0100)
commit2988abe069283af16055a90f3b86f638907cd86a
treef28d0baf5848547b18b1b1e4f26c4be5bbb02530
parent92791b972c4a5a9b82386536cdfc039e854daee0
Do not complain when /dev/crypto does not exist.

FreeBSD does not enable cryptodev(4) by default.  OpenBSD disabled support
for /dev/crypto by default from 4.9 and removed it from 5.7.  Now the engine
is properly enabled by default on BSD platforms (see #7885), it continuously
complains:

Could not open /dev/crypto: No such file or directory

Hide the nagging error message behind ENGINE_DEVCRYPTO_DEBUG.

CLA: trivial

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
(Merged from https://github.com/openssl/openssl/pull/7896)

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