//(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;
}
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;