Keep options ordered alphabetical
[exim.git] / src / src / pdkim / sha2.c
index e0beaf9926379e0909aef7c0a638a4d3e131f7d7..6ab6cb906add7975df99373567e372dc4d621ad9 100644 (file)
@@ -1,3 +1,7 @@
+#include "crypt_ver.h"
+
+#ifdef SHA_POLARSSL    /* remainder of file */
+
 /*
  *  FIPS-180-2 compliant SHA-256 implementation
  *
  *  http://csrc.nist.gov/publications/fips/fips180-2/fips180-2.pdf
  */
 
-#include "sha2.h"
+#include "polarssl/config.h"
+
+#if defined(POLARSSL_SHA2_C)
+
+#include "polarssl/sha2.h"
 
 #include <string.h>
 #include <stdio.h>
@@ -439,3 +447,7 @@ void sha2_hmac( const unsigned char *key, int keylen,
 
     memset( &ctx, 0, sizeof( sha2_context ) );
 }
+
+
+#endif
+#endif