summaryrefslogtreecommitdiffstats
path: root/engines
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2011-06-14 12:58:00 +0000
committerDr. Stephen Henson <steve@openssl.org>2011-06-14 12:58:00 +0000
commitc65d409afd9466cde42d2e1ef0de6dc790904634 (patch)
treefd0de597663e548e1ef2e2cc72b0b42641ba9ced /engines
parented1bbe2cad13ce25d89854792493d52f3ac83346 (diff)
Fix warnings in shared builds.
Diffstat (limited to 'engines')
-rw-r--r--engines/e_padlock.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/e_padlock.c b/engines/e_padlock.c
index 7d09419804..fb6aee82a5 100644
--- a/engines/e_padlock.c
+++ b/engines/e_padlock.c
@@ -104,11 +104,11 @@
# if (defined(__GNUC__) && (defined(__i386__) || defined(__i386))) || \
(defined(_MSC_VER) && defined(_M_IX86))
# define COMPILE_HW_PADLOCK
-static ENGINE *ENGINE_padlock (void);
# endif
#endif
#ifdef OPENSSL_NO_DYNAMIC_ENGINE
+static ENGINE *ENGINE_padlock (void);
void ENGINE_load_padlock (void)
{
@@ -197,6 +197,8 @@ padlock_bind_helper(ENGINE *e)
return 1;
}
+#ifdef OPENSSL_NO_DYNAMIC_ENGINE
+
/* Constructor */
static ENGINE *
ENGINE_padlock(void)
@@ -215,6 +217,8 @@ ENGINE_padlock(void)
return eng;
}
+#endif
+
/* Check availability of the engine */
static int
padlock_init(ENGINE *e)