Fix no-engine
[openssl.git] / providers / common / macs / hmac_prov.c
index e77dfe3439cd5117b5e5b20e964e930972068377..e9be9802e6e48e9f2c51f7312e07b5095a5e5869 100644 (file)
@@ -198,7 +198,8 @@ static int hmac_set_ctx_params(void *vmacctx, const OSSL_PARAM params[])
             const char *algoname = p->data;
             const char *propquery = NULL;
 
-#ifndef FIPS_MODE /* Inside the FIPS module, we don't support engines */
+/* Inside the FIPS module, we don't support engines */
+#if !defined(FIPS_MODE) && !defined(OPENSSL_NO_ENGINE)
             ENGINE_finish(macctx->tmpengine);
             macctx->tmpengine = NULL;