From: Jean-Marc Pigeon (Delson) Date: Fri, 4 Jul 2025 10:42:10 +0000 (-0400) Subject: No authentication on clear chanel X-Git-Tag: tag-0.12~31 X-Git-Url: https://jmp-git.ovh.safe.ca/?a=commitdiff_plain;h=9ad1a25aedc195cb5490f4bf6e618cf327b0affa;p=jmp%2Fmailleur No authentication on clear chanel --- diff --git a/lib/lvleml.c b/lib/lvleml.c index 3b52770..04eb6d6 100644 --- a/lib/lvleml.c +++ b/lib/lvleml.c @@ -753,10 +753,15 @@ while (proceed==true) { //(void) rou_alert(0,"%s JMPDBG phase='%d'",OPEP,phase); switch (phase) { case 0 : //are we encrypted and on the right port + if (soc_iscrypted(contact->socptr)==false) { + (void) transmit(contact,true,"%d 5.7.0 no authentication on clear chanel", + FAILED); + phase=999; //No need to go further + } break; case 1 : //check buffer if ((buffer==(char *)0)||(strlen(buffer)==0)) { - (void) transmit(contact,true,"%d 5.7.0 Missing auth type",FAILED); + (void) transmit(contact,true,"%d 5.7.1 Missing auth type",FAILED); phase=999; //No need to go further } break; @@ -775,7 +780,7 @@ while (proceed==true) { } if (vocloc[code]==(char *)0) { (void) rou_alert(0,"%s auth type <%s> unknown (Bug?)",OPEP,local); - (void) transmit(contact,true,"%d 5.7.0 bad authentication type",BADPAR); + (void) transmit(contact,true,"%d 5.7.2 bad authentication type",BADPAR); phase=999; //Trouble Trouble } break;