Browse Source

Avoiding objconv warning about alignment

Source commit: 429ebbbcca9da9b460e0056aca95cadff9b1a6f5
Martin Prikryl 6 years ago
parent
commit
b9a0d1240b
1 changed files with 6 additions and 1 deletions
  1. 6 1
      source/putty/sshsh256.c

+ 6 - 1
source/putty/sshsh256.c

@@ -32,7 +32,8 @@
 #   endif
 #   endif
 #endif
 #endif
 
 
-// Should be working (when set to HW_SHA256_NI), but we do not have a HW to test this on
+// Should be (almost) working (when set to HW_SHA256_NI), but we do not have a HW to test this on.
+// Need to replace _mm_setr_epi8 and there's also objconv warning about alignment.
 #undef HW_SHA256
 #undef HW_SHA256
 
 
 #ifdef _FORCE_SHA_NEON
 #ifdef _FORCE_SHA_NEON
@@ -922,6 +923,8 @@ const ssh_hashalg ssh_sha256_hw = {
 
 
 #elif HW_SHA256 == HW_SHA256_NONE
 #elif HW_SHA256 == HW_SHA256_NONE
 
 
+#ifndef WINSCP_VS
+
 static bool sha256_hw_available(void)
 static bool sha256_hw_available(void)
 {
 {
     return false;
     return false;
@@ -944,4 +947,6 @@ const ssh_hashalg ssh_sha256_hw = {
         "SHA-256", "!NONEXISTENT ACCELERATED VERSION!"),
         "SHA-256", "!NONEXISTENT ACCELERATED VERSION!"),
 };
 };
 
 
+#endif // !WINSCP_VS
+
 #endif /* HW_SHA256 */
 #endif /* HW_SHA256 */