diff options
author | Richard Levitte <levitte@openssl.org> | 2002-12-05 11:16:28 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2002-12-05 11:16:28 +0100 |
commit | b84d5b72f193d65d8da7af513dbea3ad972b1ae6 (patch) | |
tree | 1e054c7f40c1646371f39d151060a80c67b177be /crypto/engine/eng_cryptodev.c | |
parent | make update (diff) | |
download | openssl-b84d5b72f193d65d8da7af513dbea3ad972b1ae6.tar.xz openssl-b84d5b72f193d65d8da7af513dbea3ad972b1ae6.zip |
Make sure to implement the cryptodev engine only when /dev/crypto exists.
Diffstat (limited to '')
-rw-r--r-- | crypto/engine/eng_cryptodev.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/crypto/engine/eng_cryptodev.c b/crypto/engine/eng_cryptodev.c index df887b03d4..be7ed6bb3f 100644 --- 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__ */ |