]> SAFE projects GIT repository - jmp/mailleur/commitdiff
Diisplaying the local md5 in hexa
authorJean-Marc Pigeon (Delson) <jmp@safe.ca>
Thu, 3 Jul 2025 00:42:19 +0000 (20:42 -0400)
committerJean-Marc Pigeon (Delson) <jmp@safe.ca>
Thu, 3 Jul 2025 00:42:19 +0000 (20:42 -0400)
lib/lvleml.c

index 1f6ef6cb21f9500e376b661fdaee337dfc2dbde2..5c02d4b72584c6441c3c91595beabc9478f643e5 100644 (file)
@@ -412,9 +412,18 @@ while (proceed==true) {
       break;
     case 2      :  {     //comparing hmac
       char *local;
+      char hexa[100];
 
       local=cnv_hashmd5(usr->passwd,(unsigned char *)seq); 
-      (void) rou_alert(0,"JMPDBG local=<%s>",local);
+      (void) strcat(hexa,"");
+      for (int i=0;i<strlen(local);i++) {
+        char convert[10];
+
+        (void) strcat(convert,"---");
+        (void) snprintf(convert,sizeof(convert),"%02hhX",local[i]);
+        (void) strcat(hexa,convert);
+        }
+      (void) rou_alert(0,"JMPDBG local=<%s> hexa",hexa);
       (void) rou_alert(0,"JMPDBG remote=<%s>",code);
       local=rou_freestr(local);
       usr=sql_freeusr(usr);