]> SAFE projects GIT repository - jmp/mailleur/commitdiff
Moved cnv_hashmd5 to cnv_cryptmd5
authorJean-Marc Pigeon (Delson) <jmp@safe.ca>
Sat, 5 Jul 2025 14:36:37 +0000 (10:36 -0400)
committerJean-Marc Pigeon (Delson) <jmp@safe.ca>
Sat, 5 Jul 2025 14:36:37 +0000 (10:36 -0400)
lib/lvleml.c
lib/subcnv.c
lib/subcnv.h

index c6b706615c4f7450e0a3c7b2ce410fc62a0f0dbd..4734cb0f27e9a69b8cc3397ec285617ab4d8b66b 100644 (file)
@@ -436,7 +436,7 @@ while (proceed==true) {
       char *local;
       char *hexa;
 
-      local=cnv_hashmd5(passwd,(unsigned char *)challenge); 
+      local=cnv_cryptmd5(passwd,(unsigned char *)challenge); 
       hexa=cnv_tohexa(local);
       //(void) rou_alert(0,"%s anwr=<%s>",OPEP,answer);
       //(void) rou_alert(0,"%s hexa=<%s>",OPEP,hexa);
@@ -623,9 +623,9 @@ while (proceed==true) {
       char *local;
       char *hexa;
 
-      //local=cnv_hashmd5(usr->passwd,(unsigned char *)seq); 
+      //local=cnv_cryptmd5(usr->passwd,(unsigned char *)seq); 
       (void) rou_asprintf(&decoded,"%s%s%s%s",IOBNULL,name,IOBNULL,(char *)0);
-      local=cnv_hashmd5("mailleur",(unsigned char *)seq); 
+      local=cnv_cryptmd5("mailleur",(unsigned char *)seq); 
       hexa=cnv_tohexa(local);
       (void) rou_alert(0,"%s code=<%s>",OPEP,code);
       (void) rou_alert(0,"%s hexa=<%s>",OPEP,hexa);
index 07e393971aec18a6409f996b6a0711aa9d5aaf47..505edca00ffdfce6a3f08d65b55b37cce66f62aa 100644 (file)
@@ -174,10 +174,11 @@ return coded;
 */
 /********************************************************/
 /*                                                      */
-/*      procedure to compute a MD5 hashing.             */
+/*      Procedure to crypt a string with MD5 hash       */
+/*      function.                                       */
 /*                                                      */
 /********************************************************/
-PUBLIC char *cnv_hashmd5(const void *key,unsigned char *seq)
+PUBLIC char *cnv_cryptmd5(const void *key,unsigned char *seq)
 
 {
 #define OPEP    "subcnv.c:cnv_hashmd5,"
index 50c1e5d58be899f816fb01f97240f82e4e45c71b..dfb54ff529c52d2282567b01a57fdc067e3e0522 100644 (file)
@@ -19,8 +19,12 @@ extern char *cnv_getb64(char *b64);
 //to an ASCII B64 sequence
 extern char *cnv_setb64(const char *str);
 
-//Procedure to calculate a MD5 hash function
-extern char *cnv_hashmd5(const void *key,unsigned char *seq);
+//procedure to convert a string to a 128 Bit sequence
+//as a string
+extern char *cnv_hashmd5(char *seq);
+
+//Procedure to crypt a string with MD5 hash function
+extern char *cnv_cryptmd5(const void *key,unsigned char *seq);
 
 //Procedure to convert a string of character as an HEXA string
 extern char *cnv_tohexa(const char *str);