Fixes for EVP_DigestInit_ex() and OPENSSL_NO_ENGINE.
authorDr. Stephen Henson <steve@openssl.org>
Wed, 12 Mar 2003 02:31:40 +0000 (02:31 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Wed, 12 Mar 2003 02:31:40 +0000 (02:31 +0000)
crypto/evp/digest.c

index 5b2104a..b22eed4 100644 (file)
@@ -187,12 +187,12 @@ int EVP_DigestInit_ex(EVP_MD_CTX *ctx, const EVP_MD *type, ENGINE *impl)
                        ctx->engine = NULL;
                }
        else
-#endif
        if(!ctx->digest)
                {
                EVPerr(EVP_F_EVP_DIGESTINIT, EVP_R_NO_DIGEST_SET);
                return 0;
                }
+#endif
        if (ctx->digest != type)
                {
                if (ctx->digest && ctx->digest->ctx_size)