From 0b7f1fcefcfc80afcdd209374d28bca57aabdc3b Mon Sep 17 00:00:00 2001 From: "Jean-Marc Pigeon (Delson)" Date: Wed, 2 Jul 2025 20:00:34 -0400 Subject: [PATCH] Working out the cram-md5 situation --- lib/lvleml.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; -- 2.47.3