Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/openssl/openssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2002-11-13 17:30:34 +0300
committerRichard Levitte <levitte@openssl.org>2002-11-13 17:30:34 +0300
commitad1ddf413c1c2c37059ea4d0ff390db9062dced7 (patch)
treec44d148d4663c910e64b4c434626272b4bae7dc8 /demos
parente2c2152be94ce56a7f048e671eff9cebb5281d35 (diff)
The loading functions should be static if we build a dynamic engine.
Diffstat (limited to 'demos')
-rw-r--r--demos/engines/cluster_labs/hw_cluster_labs.c7
-rw-r--r--demos/engines/ibmca/hw_ibmca.c3
-rw-r--r--demos/engines/zencod/hw_zencod.c5
3 files changed, 12 insertions, 3 deletions
diff --git a/demos/engines/cluster_labs/hw_cluster_labs.c b/demos/engines/cluster_labs/hw_cluster_labs.c
index 00c14f2755..036f48bafa 100644
--- a/demos/engines/cluster_labs/hw_cluster_labs.c
+++ b/demos/engines/cluster_labs/hw_cluster_labs.c
@@ -103,7 +103,7 @@ static int cluster_labs_rsa_mod_exp(BIGNUM *r0, const BIGNUM *I, RSA *rsa);
/* DSA stuff */
#ifndef OPENSSL_NO_DSA
-DSA_SIG *cluster_labs_dsa_sign(const unsigned char *dgst, int dlen, DSA *dsa);
+static DSA_SIG *cluster_labs_dsa_sign(const unsigned char *dgst, int dlen, DSA *dsa);
static int cluster_labs_dsa_verify(const unsigned char *dgst, int dgst_len,
DSA_SIG *sig, DSA *dsa);
static int cluster_labs_dsa_mod_exp(DSA *dsa, BIGNUM *rr, BIGNUM *a1,
@@ -245,6 +245,9 @@ static ENGINE *engine_cluster_labs(void)
return ret;
}
+#ifdef ENGINE_DYNAMIC_SUPPORT
+static
+#endif
void ENGINE_load_cluster_labs(void)
{
@@ -504,7 +507,7 @@ static int cluster_labs_rsa_mod_exp(BIGNUM *r0, const BIGNUM *I, RSA *rsa)
}
-DSA_SIG *cluster_labs_dsa_sign(const unsigned char *dgst, int dlen, DSA *dsa)
+static DSA_SIG *cluster_labs_dsa_sign(const unsigned char *dgst, int dlen, DSA *dsa)
{
if(cluster_labs_dso == NULL)
diff --git a/demos/engines/ibmca/hw_ibmca.c b/demos/engines/ibmca/hw_ibmca.c
index 881b16a7cb..0c2c39b8a7 100644
--- a/demos/engines/ibmca/hw_ibmca.c
+++ b/demos/engines/ibmca/hw_ibmca.c
@@ -288,6 +288,9 @@ static ENGINE *engine_ibmca(void)
return ret;
}
+#ifdef ENGINE_DYNAMIC_SUPPORT
+static
+#endif
void ENGINE_load_ibmca(void)
{
/* Copied from eng_[openssl|dyn].c */
diff --git a/demos/engines/zencod/hw_zencod.c b/demos/engines/zencod/hw_zencod.c
index 308e18710f..29206b4a29 100644
--- a/demos/engines/zencod/hw_zencod.c
+++ b/demos/engines/zencod/hw_zencod.c
@@ -366,7 +366,7 @@ static int bind_helper ( ENGINE *e )
/* As this is only ever called once, there's no need for locking
* (indeed - the lock will already be held by our caller!!!)
*/
-ENGINE *ENGINE_zencod ( void )
+static ENGINE *ENGINE_zencod ( void )
{
ENGINE *eng = ENGINE_new () ;
@@ -383,6 +383,9 @@ ENGINE *ENGINE_zencod ( void )
}
+#ifdef ENGINE_DYNAMIC_SUPPORT
+static
+#endif
void ENGINE_load_zencod ( void )
{
/* Copied from eng_[openssl|dyn].c */