From branch OpenSSL_0_9_7-stable, 2002-11-13 15:30:
authorRichard Levitte <levitte@openssl.org>
Sat, 30 Apr 2005 14:34:28 +0000 (14:34 +0000)
committerRichard Levitte <levitte@openssl.org>
Sat, 30 Apr 2005 14:34:28 +0000 (14:34 +0000)
The loading functions should be static if we build a dynamic
engine.

demos/engines/cluster_labs/hw_cluster_labs.c
demos/engines/ibmca/hw_ibmca.c
demos/engines/zencod/hw_zencod.c

index 00c14f27556aedef578bed5dde03697966ea7ca5..036f48bafac46bca3898a5c9ccd90d88fa99d202 100644 (file)
@@ -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)
index 881b16a7cb23477741a8ca71ec7664064fb9186c..0c2c39b8a7997e1f07bce9859886dc9d03d65044 100644 (file)
@@ -288,6 +288,9 @@ static ENGINE *engine_ibmca(void)
        return ret;\r
        }\r
 \r
+#ifdef ENGINE_DYNAMIC_SUPPORT\r
+static\r
+#endif\r
 void ENGINE_load_ibmca(void)\r
        {\r
        /* Copied from eng_[openssl|dyn].c */\r
index 308e18710f46c41801b59d7470181986429477a5..29206b4a2978da1ffeef0f1ce1b09cd90d0e9da1 100644 (file)
@@ -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 */