When build as dynamic engines, the loading functions should be defined
static.
diff --git a/engines/e_4758_cca.c b/engines/e_4758_cca.c
index 203a8a7..84de02d 100644
--- a/engines/e_4758_cca.c
+++ b/engines/e_4758_cca.c
@@ -223,6 +223,7 @@
return 1;
}
+#ifdef OPENSSL_NO_DYNAMIC_ENGINE
static ENGINE *engine_4758_cca(void)
{
ENGINE *ret = ENGINE_new();
@@ -244,6 +245,7 @@
ENGINE_free(e_4758);
ERR_clear_error();
}
+#endif
static int ibm_4758_cca_destroy(ENGINE *e)
{
diff --git a/engines/e_atalla.c b/engines/e_atalla.c
index 65339a0..9922189 100644
--- a/engines/e_atalla.c
+++ b/engines/e_atalla.c
@@ -243,6 +243,7 @@
return 1;
}
+#ifdef OPENSSL_NO_DYNAMIC_ENGINE
static ENGINE *engine_atalla(void)
{
ENGINE *ret = ENGINE_new();
@@ -265,6 +266,7 @@
ENGINE_free(toadd);
ERR_clear_error();
}
+#endif
/* This is a process-global DSO handle used for loading and unloading
* the Atalla library. NB: This is only set (or unset) during an
diff --git a/engines/e_cswift.c b/engines/e_cswift.c
index f3d3628..ac49098 100644
--- a/engines/e_cswift.c
+++ b/engines/e_cswift.c
@@ -262,6 +262,7 @@
return 1;
}
+#ifdef OPENSSL_NO_DYNAMIC_ENGINE
static ENGINE *engine_cswift(void)
{
ENGINE *ret = ENGINE_new();
@@ -284,6 +285,7 @@
ENGINE_free(toadd);
ERR_clear_error();
}
+#endif
/* This is a process-global DSO handle used for loading and unloading
* the CryptoSwift library. NB: This is only set (or unset) during an
diff --git a/engines/e_ncipher.c b/engines/e_ncipher.c
index f38a6a6..6126948 100644
--- a/engines/e_ncipher.c
+++ b/engines/e_ncipher.c
@@ -372,6 +372,7 @@
return 1;
}
+#ifdef OPENSSL_NO_DYNAMIC_ENGINE
static ENGINE *engine_ncipher(void)
{
ENGINE *ret = ENGINE_new();
@@ -394,6 +395,7 @@
ENGINE_free(toadd);
ERR_clear_error();
}
+#endif
/* This is a process-global DSO handle used for loading and unloading
* the HWCryptoHook library. NB: This is only set (or unset) during an
diff --git a/engines/e_nuron.c b/engines/e_nuron.c
index d7960a9..88f2964 100644
--- a/engines/e_nuron.c
+++ b/engines/e_nuron.c
@@ -375,6 +375,7 @@
return 1;
}
+#ifdef OPENSSL_NO_DYNAMIC_ENGINE
static ENGINE *engine_nuron(void)
{
ENGINE *ret = ENGINE_new();
@@ -397,6 +398,7 @@
ENGINE_free(toadd);
ERR_clear_error();
}
+#endif
/* This stuff is needed if this ENGINE is being compiled into a self-contained
* shared-library. */
diff --git a/engines/e_ubsec.c b/engines/e_ubsec.c
index 35af495..c5d1f58 100644
--- a/engines/e_ubsec.c
+++ b/engines/e_ubsec.c
@@ -243,6 +243,7 @@
return 1;
}
+#ifdef OPENSSL_NO_DYNAMIC_ENGINE
static ENGINE *engine_ubsec(void)
{
ENGINE *ret = ENGINE_new();
@@ -265,6 +266,7 @@
ENGINE_free(toadd);
ERR_clear_error();
}
+#endif
/* This is a process-global DSO handle used for loading and unloading
* the UBSEC library. NB: This is only set (or unset) during an