When build as dynamic engines, the loading functions should be defined

static.
This commit is contained in:
Richard Levitte 2002-11-13 15:29:01 +00:00
parent 96a3369c4a
commit cd10ba9c39
6 changed files with 12 additions and 0 deletions

View File

@ -223,6 +223,7 @@ static int bind_helper(ENGINE *e)
return 1; return 1;
} }
#ifndef ENGINE_DYNAMIC_SUPPORT
static ENGINE *engine_4758_cca(void) static ENGINE *engine_4758_cca(void)
{ {
ENGINE *ret = ENGINE_new(); ENGINE *ret = ENGINE_new();
@ -244,6 +245,7 @@ void ENGINE_load_4758cca(void)
ENGINE_free(e_4758); ENGINE_free(e_4758);
ERR_clear_error(); ERR_clear_error();
} }
#endif
static int ibm_4758_cca_destroy(ENGINE *e) static int ibm_4758_cca_destroy(ENGINE *e)
{ {

View File

@ -242,6 +242,7 @@ static int bind_helper(ENGINE *e)
return 1; return 1;
} }
#ifndef ENGINE_DYNAMIC_SUPPORT
static ENGINE *engine_atalla(void) static ENGINE *engine_atalla(void)
{ {
ENGINE *ret = ENGINE_new(); ENGINE *ret = ENGINE_new();
@ -264,6 +265,7 @@ void ENGINE_load_atalla(void)
ENGINE_free(toadd); ENGINE_free(toadd);
ERR_clear_error(); ERR_clear_error();
} }
#endif
/* This is a process-global DSO handle used for loading and unloading /* This is a process-global DSO handle used for loading and unloading
* the Atalla library. NB: This is only set (or unset) during an * the Atalla library. NB: This is only set (or unset) during an

View File

@ -259,6 +259,7 @@ static int bind_helper(ENGINE *e)
return 1; return 1;
} }
#ifndef ENGINE_DYNAMIC_SUPPORT
static ENGINE *engine_cswift(void) static ENGINE *engine_cswift(void)
{ {
ENGINE *ret = ENGINE_new(); ENGINE *ret = ENGINE_new();
@ -281,6 +282,7 @@ void ENGINE_load_cswift(void)
ENGINE_free(toadd); ENGINE_free(toadd);
ERR_clear_error(); ERR_clear_error();
} }
#endif
/* This is a process-global DSO handle used for loading and unloading /* This is a process-global DSO handle used for loading and unloading
* the CryptoSwift library. NB: This is only set (or unset) during an * the CryptoSwift library. NB: This is only set (or unset) during an

View File

@ -373,6 +373,7 @@ static int bind_helper(ENGINE *e)
return 1; return 1;
} }
#ifndef ENGINE_DYNAMIC_SUPPORT
static ENGINE *engine_ncipher(void) static ENGINE *engine_ncipher(void)
{ {
ENGINE *ret = ENGINE_new(); ENGINE *ret = ENGINE_new();
@ -395,6 +396,7 @@ void ENGINE_load_chil(void)
ENGINE_free(toadd); ENGINE_free(toadd);
ERR_clear_error(); ERR_clear_error();
} }
#endif
/* This is a process-global DSO handle used for loading and unloading /* This is a process-global DSO handle used for loading and unloading
* the HWCryptoHook library. NB: This is only set (or unset) during an * the HWCryptoHook library. NB: This is only set (or unset) during an

View File

@ -374,6 +374,7 @@ static int bind_helper(ENGINE *e)
return 1; return 1;
} }
#ifndef ENGINE_DYNAMIC_SUPPORT
static ENGINE *engine_nuron(void) static ENGINE *engine_nuron(void)
{ {
ENGINE *ret = ENGINE_new(); ENGINE *ret = ENGINE_new();
@ -396,6 +397,7 @@ void ENGINE_load_nuron(void)
ENGINE_free(toadd); ENGINE_free(toadd);
ERR_clear_error(); ERR_clear_error();
} }
#endif
/* This stuff is needed if this ENGINE is being compiled into a self-contained /* This stuff is needed if this ENGINE is being compiled into a self-contained
* shared-library. */ * shared-library. */

View File

@ -242,6 +242,7 @@ static int bind_helper(ENGINE *e)
return 1; return 1;
} }
#ifndef ENGINE_DYNAMIC_SUPPORT
static ENGINE *engine_ubsec(void) static ENGINE *engine_ubsec(void)
{ {
ENGINE *ret = ENGINE_new(); ENGINE *ret = ENGINE_new();
@ -264,6 +265,7 @@ void ENGINE_load_ubsec(void)
ENGINE_free(toadd); ENGINE_free(toadd);
ERR_clear_error(); ERR_clear_error();
} }
#endif
/* This is a process-global DSO handle used for loading and unloading /* This is a process-global DSO handle used for loading and unloading
* the UBSEC library. NB: This is only set (or unset) during an * the UBSEC library. NB: This is only set (or unset) during an