Enc doesn't support AEAD ciphers.
[openssl.git] / fips / fips_premain.c
index 526edbb9d2f2684c67885082aec3fe26ff2f5f96..7dc52460069f76c14c7f41e8e77b722b01963b08 100644 (file)
@@ -7,7 +7,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#if defined(__unix) || defined(__unix__) || defined(__vxworks) || defined(__ANDROID__)
+#if defined(__unix) || defined(__unix__) || defined(__vxworks) || defined(__ANDROID__) || defined(__APPLE__)
 #include <unistd.h>
 #endif
 
@@ -69,8 +69,9 @@
 #endif
 
 #if defined(_MSC_VER)
-# pragma section("fipsro",read)
-# __declspec(allocate("fipsro"))
+# pragma const_seg("fipsro")
+# pragma const_seg()
+  __declspec(allocate("fipsro"))
 #endif
 static const unsigned char FINGERPRINT_ascii_value[41] = HMAC_SHA1_SIG;