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);
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);
*/
/********************************************************/
/* */
-/* 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,"
//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);