/dev/crypto: Suppress warning when open /dev/crypto fails with ENXIO.
authorTaylor R Campbell <campbell+openssl@mumble.net>
Wed, 29 Mar 2023 13:21:02 +0000 (13:21 +0000)
committerTomas Mraz <tomas@openssl.org>
Fri, 31 Mar 2023 10:23:45 +0000 (12:23 +0200)
commit1636b355ade558d01f5a826494264ca31d6aeeb7
treed951d40f6f7d6605c97d01ee54d3c569f7d46f40
parent8189fe242bba319dfccd8805fd7703d973bf9649
/dev/crypto: Suppress warning when open /dev/crypto fails with ENXIO.

On NetBSD the device node is essentially always present, but these
days it's mostly not useful except for testing the kernel crypto
stack since the cost of CPU crypto has gone down much faster than the
cost of I/O to external crypto engines.  So on most systems it is
disabled in a way that makes open fail with ENXIO.  NetBSD has had
this warning for ENXIO patched away for years.

CLA: trivial

Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20636)
engines/e_devcrypto.c