Fix warning with MD/SHA ALT implementation
backport of e217cee
see #239
diff --git a/library/sha1.c b/library/sha1.c
index be463df..4255741 100644
--- a/library/sha1.c
+++ b/library/sha1.c
@@ -35,13 +35,13 @@
#include <stdio.h>
#endif
+#if !defined(POLARSSL_SHA1_ALT)
+
/* Implementation that should never be optimized out by the compiler */
static void polarssl_zeroize( void *v, size_t n ) {
volatile unsigned char *p = v; while( n-- ) *p++ = 0;
}
-#if !defined(POLARSSL_SHA1_ALT)
-
/*
* 32-bit integer manipulation macros (big endian)
*/