From: Jean-Marc Pigeon (Delson) Date: Thu, 3 Jul 2025 00:00:34 +0000 (-0400) Subject: Working out the cram-md5 situation X-Git-Tag: tag-0.12~46 X-Git-Url: https://jmp-git.ovh.safe.ca/?a=commitdiff_plain;h=0b7f1fcefcfc80afcdd209374d28bca57aabdc3b;p=jmp%2Fmailleur Working out the cram-md5 situation --- diff --git a/lib/lvleml.c b/lib/lvleml.c index 8509517..332a3e0 100644 --- a/lib/lvleml.c +++ b/lib/lvleml.c @@ -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;