Commit 14eba5bf 14eba5bfc2df57dde7ce67850835da2cba9667b8 by Sergey Poznyakoff

When TLS negotiation succeedes, remove "STARTTLS" capability and reset login_disabled.

1 parent e89e9427
......@@ -35,6 +35,12 @@ imap4d_starttls (struct imap4d_command *command, char *arg)
util_flush_output ();
tls_done = imap4d_init_tls_server ();
if (tls_done)
{
imap4d_capability_remove ("STARTTLS");
login_disabled = 0;
imap4d_capability_remove ("LOGINDISABLED");
}
return status;
}
......