From: Richard Levitte Date: Thu, 5 Dec 2002 10:17:08 +0000 (+0000) Subject: Make sure to implement the cryptodev engine only when /dev/crypto exists. X-Git-Tag: OpenSSL_0_9_7-beta5~5 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ae0b7667a964f3eafb9b4d6b3a4a91fb7d15e76b;p=oweals%2Fopenssl.git Make sure to implement the cryptodev engine only when /dev/crypto exists. PR: 385 --- diff --git a/crypto/engine/hw_cryptodev.c b/crypto/engine/hw_cryptodev.c index df887b03d4..be7ed6bb3f 100644 --- a/crypto/engine/hw_cryptodev.c +++ b/crypto/engine/hw_cryptodev.c @@ -46,6 +46,18 @@ ENGINE_load_cryptodev(void) #include #include + +#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 #include #include @@ -1114,4 +1126,5 @@ ENGINE_load_cryptodev(void) ERR_clear_error(); } +#endif /* OpenBSD 3.0 or above */ #endif /* __OpenBSD__ */