Edit

kc3-lang/libressl/patches/win32_amd64_bn_arch.h.patch

Branch :

  • Browse

    Commit

  • Author : Theo Buehler
    Date : 2024-03-27 22:39:38
    Hash : ade8bb88
    Message : Rebase weird _WIN32 hack for BN

  • patches/win32_amd64_bn_arch.h.patch
  • We should consider a OPENSSL_NO_BN_ASM if we can't figure
    out how to fix BIGNUM on this OS
    
    --- crypto/bn/arch/amd64/bn_arch.h.orig	Wed Mar 27 22:17:03 2024
    +++ crypto/bn/arch/amd64/bn_arch.h	Wed Mar 27 22:17:31 2024
    @@ -20,8 +20,14 @@
     #ifndef HEADER_BN_ARCH_H
     #define HEADER_BN_ARCH_H
     
    +#ifdef _WIN32
     #ifndef OPENSSL_NO_ASM
    +#define OPENSSL_NO_ASM
    +#endif
    +#else
     
    +#ifndef OPENSSL_NO_ASM
    +
     #define HAVE_BN_ADD
     #define HAVE_BN_ADD_WORDS
     
    @@ -104,6 +110,7 @@ bn_subw(BN_ULONG a, BN_ULONG b, BN_ULONG *out_borrow, 
     }
     
     #endif /* __GNUC__ */
    +#endif /* _WIN32 */
     
     #endif
     #endif