projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8cbcced
)
Make sure to implement the cryptodev engine only when /dev/crypto exists.
author
Richard Levitte
<levitte@openssl.org>
Thu, 5 Dec 2002 10:16:28 +0000
(10:16 +0000)
committer
Richard Levitte
<levitte@openssl.org>
Thu, 5 Dec 2002 10:16:28 +0000
(10:16 +0000)
crypto/engine/eng_cryptodev.c
patch
|
blob
|
history
diff --git
a/crypto/engine/eng_cryptodev.c
b/crypto/engine/eng_cryptodev.c
index df887b03d4983fc37796762c4a9f4f713017f0ee..be7ed6bb3f808c036859a1c5e4fd11a3e8d17fcb 100644
(file)
--- a/
crypto/engine/eng_cryptodev.c
+++ b/
crypto/engine/eng_cryptodev.c
@@
-46,6
+46,18
@@
ENGINE_load_cryptodev(void)
#include <sys/types.h>
#include <sys/param.h>
+
+#if OpenBSD < 200112
+
+void
+ENGINE_load_cryptodev(void)
+{
+ /* This is a NOP unless we have release 3.0 (released december 2001) */
+ return;
+}
+
+#else /* OpenBSD 3.0 or above */
+
#include <crypto/cryptodev.h>
#include <sys/ioctl.h>
#include <errno.h>
@@
-1114,4
+1126,5
@@
ENGINE_load_cryptodev(void)
ERR_clear_error();
}
+#endif /* OpenBSD 3.0 or above */
#endif /* __OpenBSD__ */