diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2009-07-01 14:55:59 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2009-07-01 14:55:59 +0000 |
commit | e105098b3f3f04dce130d067ac98e91d03884bbb (patch) | |
tree | 307583e6896a77c3e719060075a559bd67905249 /crypto/engine | |
parent | 9852e7e4d72eef334b90a24823ff7fbe4c5c9990 (diff) |
PR: 1974 (partial)
Submitted by: David McCullough <david_mccullough@securecomputing.com>
Approved by: steve@openssl.org
If -DHAVE_CRYPTODEV is set enable cryptodev support
Diffstat (limited to 'crypto/engine')
-rw-r--r-- | crypto/engine/eng_all.c | 4 | ||||
-rw-r--r-- | crypto/engine/engine.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/crypto/engine/eng_all.c b/crypto/engine/eng_all.c index a6f5499340..22c120454f 100644 --- a/crypto/engine/eng_all.c +++ b/crypto/engine/eng_all.c @@ -68,7 +68,7 @@ void ENGINE_load_builtin_engines(void) * *no* builtin implementations). */ ENGINE_load_openssl(); #endif -#if defined(__OpenBSD__) || defined(__FreeBSD__) +#if !defined(OPENSSL_NO_HW) && (defined(__OpenBSD__) || defined(__FreeBSD__) || defined(HAVE_CRYPTODEV)) ENGINE_load_cryptodev(); #endif ENGINE_load_dynamic(); @@ -114,7 +114,7 @@ void ENGINE_load_builtin_engines(void) #endif } -#if defined(__OpenBSD__) || defined(__FreeBSD__) +#if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(HAVE_CRYPTODEV) void ENGINE_setup_bsd_cryptodev(void) { static int bsd_cryptodev_default_loaded = 0; if (!bsd_cryptodev_default_loaded) { diff --git a/crypto/engine/engine.h b/crypto/engine/engine.h index 10b5d6787a..c411806066 100644 --- a/crypto/engine/engine.h +++ b/crypto/engine/engine.h @@ -732,7 +732,7 @@ typedef int (*dynamic_bind_engine)(ENGINE *e, const char *id, * values. */ void *ENGINE_get_static_state(void); -#if defined(__OpenBSD__) || defined(__FreeBSD__) +#if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(HAVE_CRYPTODEV) void ENGINE_setup_bsd_cryptodev(void); #endif |