Swiftgram/submodules/openssl/patch-include.patch
2020-01-06 22:19:25 +04:00

29 lines
706 B
Diff

--- opensslconf.h 2020-01-06 02:41:46.000000000 +0400
+++ opensslconf_updated.h 2020-01-06 02:51:12.000000000 +0400
@@ -205,11 +205,21 @@
* The following are cipher-specific, but are part of the public API.
*/
#if !defined(OPENSSL_SYS_UEFI)
-# undef BN_LLONG
+# ifdef __LP64__
+# undef BN_LLONG
+# else
+# define BN_LLONG
+# endif
/* Only one for the following should be defined */
-# define SIXTY_FOUR_BIT_LONG
-# undef SIXTY_FOUR_BIT
-# undef THIRTY_TWO_BIT
+# ifdef __LP64__
+# define SIXTY_FOUR_BIT_LONG
+# undef SIXTY_FOUR_BIT
+# undef THIRTY_TWO_BIT
+# else
+# undef SIXTY_FOUR_BIT_LONG
+# undef SIXTY_FOUR_BIT
+# define THIRTY_TWO_BIT
+# endif
#endif
#define RC4_INT unsigned char