S:EHLO example.com
R:250-mailleur.example.com, link (cleartext) ready, your IP/FQDN=[127.0.0.1/localhost.localdomain]
R:250-SIZE 52428800
-R:250-ORGN
R:250-STARTTLS
R:250-8BITMIME
R:250-ENHANCEDSTATUSCODES
R:250-AUTH PLAIN LOGIN
+R:250-ORGN
R:250 HELP
C:GOTLS
R:250 Link now encryp...
+S:EHLO example.com
+R:250-mailleur.example.com, link (crypted) ready, your IP/FQDN=[127.0.0.1/localhost.localdomain]
+R:250-SIZE 52428800
+R:250-8BITMIME
+R:250-ENHANCEDSTATUSCODES
+R:250-AUTH PLAIN LOGIN
+R:250-ORGN
+R:250 HELP
#send a empty ehlo
S:EHLO
R:501 5.5.4 syntax error (domain part missing), closing connection.
{
static char *ehlostr[]= {
-#ifdef MODEDEBUG
- "-ORGN", //specific command to change ORIGIN IP
-#endif
"-STARTTLS",
"-8BITMIME",
"-ENHANCEDSTATUSCODES",
"-AUTH PLAIN LOGIN",
+#ifdef MODEDEBUG
+ "-ORGN", //specific command to change ORIGIN IP
+#endif
" HELP",
(char *)0
};
}
break;
case 3 : //verify management
- (void) SSL_CTX_set_purpose(tls->ctx,X509_PURPOSE_ANY);
+ if (((mode&SSL_VERIFY_PEER)!=0)||(tls->server==false))
+ tls->checkpeer=true;
(void) SSL_CTX_set_verify(tls->ctx,mode,(int(*)())0);
- (void) SSL_CTX_set_verify_depth(tls->ctx,5);
+ (void) SSL_CTX_set_purpose(tls->ctx,X509_PURPOSE_ANY);
+ (void) SSL_CTX_set_verify_depth(tls->ctx,7);
(void) SSL_CTX_set_options(tls->ctx,SSL_OP_ALL);
if (SSL_CTX_set_cipher_list(tls->ctx,SSL_CIPHER_LIST)==0) {
(void) showtlserror(tls,0,"No cipher list");
}
}
break;
- case 5 : //display cipher used
- break;
default : //SAFE Guard
proceed=false;
break;