Thu Dec 5 17:52:06 2019 UTC ()
PR/54740: Izumi Tsutsui: Disable cryptoengine unavailable message when
device is not configured (ENXIO).


(christos)
diff -r1.4 -r1.5 src/crypto/external/bsd/openssl/dist/crypto/engine/eng_devcrypto.c

cvs diff -r1.4 -r1.5 src/crypto/external/bsd/openssl/dist/crypto/engine/Attic/eng_devcrypto.c (expand / switch to context diff)
--- src/crypto/external/bsd/openssl/dist/crypto/engine/Attic/eng_devcrypto.c 2019/03/12 16:58:13 1.4
+++ src/crypto/external/bsd/openssl/dist/crypto/engine/Attic/eng_devcrypto.c 2019/12/05 17:52:06 1.5
@@ -761,7 +761,7 @@
 
     if ((cfd = open("/dev/crypto", O_RDWR, 0)) < 0) {
 #ifndef ENGINE_DEVCRYPTO_DEBUG
-        if (errno != ENOENT)
+        if (errno != ENOENT && errno != ENXIO)
 #endif
             fprintf(stderr, "Could not open /dev/crypto: %s\n", strerror(errno));
         return;