saltbundlepy-cryptography/fips-mode.patch

18 lines
320 B
Diff

--- a/src/_cffi_src/openssl/fips.py
+++ b/src/_cffi_src/openssl/fips.py
@@ -18,6 +18,14 @@
"""
CUSTOMIZATIONS = """
+int FIPS_mode_set(int) {
+ return 0;
+}
+
+int FIPS_mode(void) {
+ return 0;
+}
+
#if CRYPTOGRAPHY_IS_LIBRESSL
static const long Cryptography_HAS_FIPS = 0;
int (*FIPS_mode_set)(int) = NULL;