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 5b2104ac120f77ab1aa85aebd1a06d8f59ca4b2b..b22eed442115b544dd9b0348c3200e79b47a89f7 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)