tests: add signature checks
[gnulib.git] / tests / test-gc-hmac-md5.c
index b8cc3bf..e2fac44 100644 (file)
@@ -17,9 +17,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  * 02110-1301, USA.  */
 
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
+#include <config.h>
 
 #include <stdio.h>
 #include <string.h>
@@ -59,21 +57,21 @@ main (int argc, char *argv[])
 
     if (gc_hmac_md5 (key, key_len, data, data_len, out) != 0)
       {
-       printf ("call failure\n");
-       return 1;
+        printf ("call failure\n");
+        return 1;
       }
 
     if (memcmp (digest, out, 16) != 0)
       {
-       size_t i;
-       printf ("hash 1 mismatch. expected:\n");
-       for (i = 0; i < 16; i++)
-         printf ("%02x ", digest[i] & 0xFF);
-       printf ("\ncomputed:\n");
-       for (i = 0; i < 16; i++)
-         printf ("%02x ", out[i] & 0xFF);
-       printf ("\n");
-       return 1;
+        size_t i;
+        printf ("hash 1 mismatch. expected:\n");
+        for (i = 0; i < 16; i++)
+          printf ("%02x ", digest[i] & 0xFF);
+        printf ("\ncomputed:\n");
+        for (i = 0; i < 16; i++)
+          printf ("%02x ", out[i] & 0xFF);
+        printf ("\n");
+        return 1;
       }
   }