phase=999; //No char,no need to check for line
break;
case 1 : //do we have a buffer full;
+ //(void) rou_alert(0,"%s capile=<%s>",OPEP,soc->carpile);
if (soc->carin>=(soc->maxcarin)-1) {
//Overload! trying to overcome by extending carpile an adding an EOL
soc->carpile=(char *)realloc(soc->carpile,(soc->carin+5)*sizeof(char));
ok=false;
soc=(SOCTYP *)socptr;
if ((soc!=(SOCTYP *)0)&&(soc->modtls==false)) {
+ char *peerip;
+ peerip=(char *)0;
+ switch (server) {
+ case true :
+ peerip=soc_getaddrinfo(socptr,false,false);
+ (void) socpurge(soc,peerip);
+ peerip=rou_freestr(peerip);
+ break;
+ case false :
+ break;
+ }
soc->tls=tls_opentls(soc->handle,server);
if (soc->tls!=(TLSTYP *)0) {
- char *peerip;
-
- peerip=(char *)0;
soc->proto=pro_smtps;
soc->modtls=true;
ok=true;
- switch (server) {
- case true :
- peerip=soc_getaddrinfo(socptr,false,false);
- (void) socpurge(soc,peerip);
- break;
- case false :
- break;
- }
(void) tls_verify(soc->tls);
soc->cipherid=tls_getcipherid(soc->tls);
- peerip=rou_freestr(peerip);
}
}
return ok;