When TLS negotiation succeedes, remove "STARTTLS" capability and reset login_disabled.
Showing
1 changed file
with
6 additions
and
0 deletions
... | @@ -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 | ... | ... |
-
Please register or sign in to post a comment