summaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorjkim <jkim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>2018-12-14 01:06:34 +0000
committerjkim <jkim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>2018-12-14 01:06:34 +0000
commitbb0d0d90b94c8f6242a45806d875162209100a7c (patch)
treeb985ab9c6734f872274162e70b67c9bf8a659fb2 /crypto
parent9cd6946e61845fbd884b045ea6629bccf39a39b7 (diff)
downloadfreebsd-bb0d0d90b94c8f6242a45806d875162209100a7c.tar.gz
freebsd-bb0d0d90b94c8f6242a45806d875162209100a7c.tar.bz2
Do not complain when /dev/crypto does not exist.
Now the new devcrypto engine is enabled since r342009, many users started seeing "Could not open /dev/crypto: No such file or directory". Disable the annoying error message as it is not very useful anyway. Note the patch was submitted upstream. https://github.com/openssl/openssl/pull/7896 git-svn-id: http://svn.freebsd.org/base/head@342057 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Diffstat (limited to 'crypto')
-rw-r--r--crypto/openssl/crypto/engine/eng_devcrypto.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/crypto/openssl/crypto/engine/eng_devcrypto.c b/crypto/openssl/crypto/engine/eng_devcrypto.c
index 4a0ba09a38b..337cc69f3cb 100644
--- a/crypto/openssl/crypto/engine/eng_devcrypto.c
+++ b/crypto/openssl/crypto/engine/eng_devcrypto.c
@@ -24,6 +24,8 @@
#include "internal/engine.h"
+/* #define ENGINE_DEVCRYPTO_DEBUG */
+
#ifdef CRYPTO_ALGORITHM_MIN
# define CHECK_BSD_STYLE_MACROS
#endif
@@ -615,6 +617,9 @@ void engine_load_devcrypto_int()
ENGINE *e = NULL;
if ((cfd = open("/dev/crypto", O_RDWR, 0)) < 0) {
+#ifndef ENGINE_DEVCRYPTO_DEBUG
+ if (errno != ENOENT)
+#endif
fprintf(stderr, "Could not open /dev/crypto: %s\n", strerror(errno));
return;
}