Fixes for EVP_DigestInit_ex() and OPENSSL_NO_ENGINE.
This commit is contained in:
parent
0102bb94cb
commit
b35ca7b257
@ -187,12 +187,12 @@ int EVP_DigestInit_ex(EVP_MD_CTX *ctx, const EVP_MD *type, ENGINE *impl)
|
|||||||
ctx->engine = NULL;
|
ctx->engine = NULL;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
#endif
|
|
||||||
if(!ctx->digest)
|
if(!ctx->digest)
|
||||||
{
|
{
|
||||||
EVPerr(EVP_F_EVP_DIGESTINIT, EVP_R_NO_DIGEST_SET);
|
EVPerr(EVP_F_EVP_DIGESTINIT, EVP_R_NO_DIGEST_SET);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
if (ctx->digest != type)
|
if (ctx->digest != type)
|
||||||
{
|
{
|
||||||
if (ctx->digest && ctx->digest->ctx_size)
|
if (ctx->digest && ctx->digest->ctx_size)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user