From: Jean-Marc Pigeon (Delson) Date: Mon, 7 Jul 2025 01:55:28 +0000 (-0400) Subject: Able to transmit the whole email using digest-md5 authentication X-Git-Tag: tag-0.12~8 X-Git-Url: https://jmp-git.ovh.safe.ca/?a=commitdiff_plain;h=fcb2b3ed5d5542c25e39aec13074fc16fcb1129a;p=jmp%2Fmailleur Able to transmit the whole email using digest-md5 authentication --- diff --git a/lib/lvleml.c b/lib/lvleml.c index 72a8179..8d56bf7 100644 --- a/lib/lvleml.c +++ b/lib/lvleml.c @@ -531,7 +531,7 @@ while (proceed==true) { break; case 4 : //getting the user name and password break; - case 5 : { //comparing result. + case 5 : { //sending the rspauth sequence. char *HAS; char *rspauth; char *b64; @@ -547,7 +547,17 @@ while (proceed==true) { rspauth=rou_freestr(rspauth); HAS=rou_freestr(HAS); } - case 6 : { //comparing result. + break; + case 6 : { //waiting client to send an empty line + char *line; + int count; + + count=tcp_getline(contact->socptr,delay,&line); + if (count>0) + rou_freestr(line); //EMPTY Line! + } + break; + case 7 : { //comparing result. char *HA0; if ((HA0=dig_hashresp(resp,"AUTHENTICATE","xxx"))==(char *)0) { @@ -560,7 +570,7 @@ while (proceed==true) { HA0=rou_freestr(HA0); } break; - case 7 : //comparing answer + case 8 : //comparing answer (void) rou_alert(0,"JMPDBG Bingo!"); (void) rou_asprintf(&decoded,"%s%s%s%s",IOBNULL,resp->username,IOBNULL,"mailleur2"); break;