]> SAFE projects GIT repository - jmp/mailleur/commitdiff
Working out the cram-md5 situation
authorJean-Marc Pigeon (Delson) <jmp@safe.ca>
Thu, 3 Jul 2025 00:00:34 +0000 (20:00 -0400)
committerJean-Marc Pigeon (Delson) <jmp@safe.ca>
Thu, 3 Jul 2025 00:00:34 +0000 (20:00 -0400)
lib/lvleml.c

index 850951714287009a71fa2747e7bc9fea18307755..332a3e000b29f0fbb6cad758dd8ae84c401811ae 100644 (file)
@@ -352,6 +352,7 @@ static char *get_auth_md5(CONTYP *contact,int delay)
 #define OPEP    "lvleml.c:get_auth_md5,"
 
 char *decoded;
+long aleas;
 char *seq;
 char *b64;
 char *line;
@@ -360,7 +361,10 @@ int phase;
 _Bool proceed;
 
 decoded=(char *)0;
-(void) rou_asprintf(&seq,"<%s@%s>",contact->session->sessid,contact->locname);
+aleas=random()%100000;
+(void) rou_asprintf(&seq,"<%05d-%s@%s>",aleas,contact->session->sessid,contact->locname);
+
+(void) rou_alert(0,"%s JMPDBG SEQ=<%s>",OPEP,seq);
 b64=cnv_setb64(seq);
 line=(char *)0;
 got=0;