summaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2018-12-14 01:06:34 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2018-12-14 01:06:34 +0000
commit49ea0a812a2ffbf2abf9b254b0bbd6a41148a732 (patch)
treeb985ab9c6734f872274162e70b67c9bf8a659fb2 /crypto
parent90b566fde97e5f8b40250d6aadc0eba9f48058c2 (diff)
downloadsrc-test-49ea0a812a2ffbf2abf9b254b0bbd6a41148a732.tar.gz
src-test-49ea0a812a2ffbf2abf9b254b0bbd6a41148a732.zip
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
Notes
Notes: svn path=/head/; revision=342057
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 4a0ba09a38bec..337cc69f3cb76 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;
}