From 9ffb8af6f00224c93caa8d738414502b7483a2a0 Mon Sep 17 00:00:00 2001
From: jinlun <jinlun@huawei.com>
Date: Wed, 14 Aug 2024 15:24:31 +0800
Subject: [PATCH] add FIPS_mode_set support

---
 include/openssl/fips.h |  1 +
 1 files changed, 1 insertions(+)

diff --git a/include/openssl/fips.h b/include/openssl/fips.h
index 4162cbf..5e89003 100644
--- a/include/openssl/fips.h
+++ b/include/openssl/fips.h
@@ -19,6 +19,7 @@ extern "C" {
 # endif
 
 # define FIPS_mode() EVP_default_properties_is_fips_enabled(NULL)
+# define FIPS_mode_set(r) EVP_default_properties_enable_fips(NULL, r)
 
 # ifdef __cplusplus
 }
-- 
2.27.0

