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) ...@@ -35,6 +35,12 @@ imap4d_starttls (struct imap4d_command *command, char *arg)
35 util_flush_output (); 35 util_flush_output ();
36 tls_done = imap4d_init_tls_server (); 36 tls_done = imap4d_init_tls_server ();
37 37
38 if (tls_done)
39 {
40 imap4d_capability_remove ("STARTTLS");
41 login_disabled = 0;
42 imap4d_capability_remove ("LOGINDISABLED");
43 }
38 return status; 44 return status;
39 } 45 }
40 46
......