summaryrefslogtreecommitdiff
path: root/engines/e_padlock.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2009-05-06 13:55:40 +0000
committerRichard Levitte <levitte@openssl.org>2009-05-06 13:55:40 +0000
commite6b0c0007f454212fd12f084b1b8ccc0961e46fc (patch)
tree983e285b638b210247b81dad1381953c9fba83e8 /engines/e_padlock.c
parenteb2b33c2b9d804d9af56862eb50d7c7797fd15b1 (diff)
downloadopenssl-new-e6b0c0007f454212fd12f084b1b8ccc0961e46fc.tar.gz
Make sure the padlock code compiles correctly even on hardware that
doesn't have padlocks.
Diffstat (limited to 'engines/e_padlock.c')
-rw-r--r--engines/e_padlock.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/engines/e_padlock.c b/engines/e_padlock.c
index f051dd88be..b89113e3bd 100644
--- a/engines/e_padlock.c
+++ b/engines/e_padlock.c
@@ -1319,7 +1319,12 @@ static RAND_METHOD padlock_rand = {
padlock_rand_status, /* rand status */
};
-#endif /* COMPILE_HW_PADLOCK */
+#else /* !COMPILE_HW_PADLOCK */
+#ifndef OPENSSL_NO_DYNAMIC_ENGINE
+OPENSSL_EXPORT
+int bind_engine(ENGINE *e, const char *id, const dynamic_fns *fns) { return 0; }
+IMPLEMENT_DYNAMIC_CHECK_FN()
+#endif
#endif /* !OPENSSL_NO_HW_PADLOCK */
#endif /* !OPENSSL_NO_HW */