提交 8f797f14 编写于 作者: R Richard Levitte

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

static.
上级 c0d64de6
......@@ -223,6 +223,7 @@ static int bind_helper(ENGINE *e)
return 1;
}
#ifdef OPENSSL_NO_DYNAMIC_ENGINE
static ENGINE *engine_4758_cca(void)
{
ENGINE *ret = ENGINE_new();
......@@ -244,6 +245,7 @@ void ENGINE_load_4758cca(void)
ENGINE_free(e_4758);
ERR_clear_error();
}
#endif
static int ibm_4758_cca_destroy(ENGINE *e)
{
......
......@@ -243,6 +243,7 @@ static int bind_helper(ENGINE *e)
return 1;
}
#ifdef OPENSSL_NO_DYNAMIC_ENGINE
static ENGINE *engine_atalla(void)
{
ENGINE *ret = ENGINE_new();
......@@ -265,6 +266,7 @@ void ENGINE_load_atalla(void)
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
......
......@@ -262,6 +262,7 @@ static int bind_helper(ENGINE *e)
return 1;
}
#ifdef OPENSSL_NO_DYNAMIC_ENGINE
static ENGINE *engine_cswift(void)
{
ENGINE *ret = ENGINE_new();
......@@ -284,6 +285,7 @@ void ENGINE_load_cswift(void)
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
......
......@@ -372,6 +372,7 @@ static int bind_helper(ENGINE *e)
return 1;
}
#ifdef OPENSSL_NO_DYNAMIC_ENGINE
static ENGINE *engine_ncipher(void)
{
ENGINE *ret = ENGINE_new();
......@@ -394,6 +395,7 @@ void ENGINE_load_chil(void)
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
......
......@@ -375,6 +375,7 @@ static int bind_helper(ENGINE *e)
return 1;
}
#ifdef OPENSSL_NO_DYNAMIC_ENGINE
static ENGINE *engine_nuron(void)
{
ENGINE *ret = ENGINE_new();
......@@ -397,6 +398,7 @@ void ENGINE_load_nuron(void)
ENGINE_free(toadd);
ERR_clear_error();
}
#endif
/* This stuff is needed if this ENGINE is being compiled into a self-contained
* shared-library. */
......
......@@ -243,6 +243,7 @@ static int bind_helper(ENGINE *e)
return 1;
}
#ifdef OPENSSL_NO_DYNAMIC_ENGINE
static ENGINE *engine_ubsec(void)
{
ENGINE *ret = ENGINE_new();
......@@ -265,6 +266,7 @@ void ENGINE_load_ubsec(void)
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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册