We don't need to check if an engine has a cipher/digest in a no-engine
build.
Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
(Merged from https://github.com/openssl/openssl/pull/11031)
int nid,
const char *properties)
{
int nid,
const char *properties)
{
+#ifndef OPENSSL_NO_ENGINE
/*
* If there is an Engine available for this cipher we use the "implicit"
* form to ensure we use that engine later.
*/
if (ENGINE_get_cipher_engine(nid) != NULL)
return EVP_get_cipherbynid(nid);
/*
* If there is an Engine available for this cipher we use the "implicit"
* form to ensure we use that engine later.
*/
if (ENGINE_get_cipher_engine(nid) != NULL)
return EVP_get_cipherbynid(nid);
/* Otherwise we do an explicit fetch */
return EVP_CIPHER_fetch(libctx, OBJ_nid2sn(nid), properties);
/* Otherwise we do an explicit fetch */
return EVP_CIPHER_fetch(libctx, OBJ_nid2sn(nid), properties);
int nid,
const char *properties)
{
int nid,
const char *properties)
{
+#ifndef OPENSSL_NO_ENGINE
/*
* If there is an Engine available for this digest we use the "implicit"
* form to ensure we use that engine later.
*/
if (ENGINE_get_digest_engine(nid) != NULL)
return EVP_get_digestbynid(nid);
/*
* If there is an Engine available for this digest we use the "implicit"
* form to ensure we use that engine later.
*/
if (ENGINE_get_digest_engine(nid) != NULL)
return EVP_get_digestbynid(nid);
/* Otherwise we do an explicit fetch */
return EVP_MD_fetch(libctx, OBJ_nid2sn(nid), properties);
/* Otherwise we do an explicit fetch */
return EVP_MD_fetch(libctx, OBJ_nid2sn(nid), properties);