Added SILC Server library.
[silc.git] / lib / silccrypt / tests / test_sha1.c
index 93efb3d0aa03dc9e5cee6d0bf8542c79cd6f0e9f..7798c66dff6b840bbcde5de10506c0d4c945eac6 100644 (file)
@@ -1,4 +1,4 @@
-#include "silcincludes.h"
+#include "silc.h"
 
 /* Test vectors from NIST secure hashing definition for SHA-1 */
 
@@ -13,13 +13,13 @@ const unsigned char data2_digest[] = "\x34\xaa\x97\x3c\xd4\xc4\xda\xa4\xf6\x1e\x
 
 int main(int argc, char **argv)
 {
-  bool success = FALSE;
+  SilcBool success = FALSE;
   unsigned char digest[20];
   SilcHash sha1;
   
   if (argc > 1 && !strcmp(argv[1], "-d")) {
-    silc_debug = 1;
-    silc_debug_hexdump = 1;
+    silc_log_debug(TRUE);
+    silc_log_debug_hexdump(TRUE);
     silc_log_set_debug_string("*crypt*,*hash*,*sha1*");
   }