You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
798 B

  1. From 82b5d4028885d75adba9b66d43aeb11592e64914 Mon Sep 17 00:00:00 2001
  2. From: Rosen Penev <rosenp@gmail.com>
  3. Date: Wed, 13 Oct 2021 18:16:55 -0700
  4. Subject: [PATCH] fix runtime with wolfSSL and fastmath
  5. wolfSSL's fastmath support requires options.h to be included before
  6. anything else. Otherwise bad codepaths get taken and a crash occurs
  7. during DH initialization.
  8. Signed-off-by: Rosen Penev <rosenp@gmail.com>
  9. ---
  10. libtransmission/crypto-utils-cyassl.c | 1 +
  11. 1 file changed, 1 insertion(+)
  12. --- a/libtransmission/crypto-utils-cyassl.c
  13. +++ b/libtransmission/crypto-utils-cyassl.c
  14. @@ -19,6 +19,7 @@
  15. #define API_VERSION_HEX LIBCYASSL_VERSION_HEX
  16. #endif
  17. +#include API_HEADER(options.h)
  18. #include API_HEADER_CRYPT(arc4.h)
  19. #include API_HEADER_CRYPT(dh.h)
  20. #include API_HEADER_CRYPT(error-crypt.h)