summaryrefslogtreecommitdiffstats
path: root/engines
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2011-01-30 01:55:29 +0000
committerDr. Stephen Henson <steve@openssl.org>2011-01-30 01:55:29 +0000
commitb5b724348de90ba791a51c443ea1aa3aa8ee70a0 (patch)
tree51d5a24a0e872350225fd8a733cdde6f1de88a5d /engines
parentc3ee90d8ca0a96f4ac40b04b366d862eb531ae10 (diff)
stop warnings about no previous prototype when compiling shared engines
Diffstat (limited to 'engines')
-rw-r--r--engines/e_capi.c2
-rw-r--r--engines/e_gmp.c2
-rw-r--r--engines/e_padlock.c6
3 files changed, 10 insertions, 0 deletions
diff --git a/engines/e_capi.c b/engines/e_capi.c
index 5871491fd6..24b620fc07 100644
--- a/engines/e_capi.c
+++ b/engines/e_capi.c
@@ -1814,6 +1814,8 @@ static int cert_select_dialog(ENGINE *e, SSL *ssl, STACK_OF(X509) *certs)
#include <openssl/engine.h>
#ifndef OPENSSL_NO_DYNAMIC_ENGINE
OPENSSL_EXPORT
+int bind_engine(ENGINE *e, const char *id, const dynamic_fns *fns);
+OPENSSL_EXPORT
int bind_engine(ENGINE *e, const char *id, const dynamic_fns *fns) { return 0; }
IMPLEMENT_DYNAMIC_CHECK_FN()
#else
diff --git a/engines/e_gmp.c b/engines/e_gmp.c
index c1f5601b62..a3d47151ea 100644
--- a/engines/e_gmp.c
+++ b/engines/e_gmp.c
@@ -471,6 +471,8 @@ static int bind_fn(ENGINE *e, const char *id)
IMPLEMENT_DYNAMIC_BIND_FN(bind_fn)
#else
OPENSSL_EXPORT
+int bind_engine(ENGINE *e, const char *id, const dynamic_fns *fns);
+OPENSSL_EXPORT
int bind_engine(ENGINE *e, const char *id, const dynamic_fns *fns) { return 0; }
#endif
#endif /* !OPENSSL_NO_DYNAMIC_ENGINE */
diff --git a/engines/e_padlock.c b/engines/e_padlock.c
index 381a746058..7d09419804 100644
--- a/engines/e_padlock.c
+++ b/engines/e_padlock.c
@@ -108,6 +108,8 @@ static ENGINE *ENGINE_padlock (void);
# endif
#endif
+#ifdef OPENSSL_NO_DYNAMIC_ENGINE
+
void ENGINE_load_padlock (void)
{
/* On non-x86 CPUs it just returns. */
@@ -120,6 +122,8 @@ void ENGINE_load_padlock (void)
#endif
}
+#endif
+
#ifdef COMPILE_HW_PADLOCK
/* We do these includes here to avoid header problems on platforms that
do not have the VIA padlock anyway... */
@@ -1218,6 +1222,8 @@ static RAND_METHOD padlock_rand = {
#else /* !COMPILE_HW_PADLOCK */
#ifndef OPENSSL_NO_DYNAMIC_ENGINE
OPENSSL_EXPORT
+int bind_engine(ENGINE *e, const char *id, const dynamic_fns *fns);
+OPENSSL_EXPORT
int bind_engine(ENGINE *e, const char *id, const dynamic_fns *fns) { return 0; }
IMPLEMENT_DYNAMIC_CHECK_FN()
#endif