Port 0b1e16be to imap4d
* imap4d/imap4d.c (tls_required): Remove. (tls_mode): New variable. (imap4d_srv_config) <tls>: Remove. (imap4d_srv_config) <tls_mode>: New member. (imap4d_srv_param): Change the definition of the "tls" statement. Mark "tls-required" as deprecated. (imap4d_mainloop): Change type of the tls argument. Initialize session and pass it to each handler. * imap4d/imap4d.h (imap4d_session): New struct. (imap4d_command) <func>: Change signature. All uses changed. (tls_mode): New enum. (tls_required): Remove. (tls_available): New global. * imap4d/io.c (io_setio): Don't call tls_encryption_on, leave it to the caller. * imap4d/login.c (imap4d_login): Use session. * imap4d/starttls.c (tls_available): Global. Present even if !WITH_TLS (tls_encryption_on): Change signature. All callers updated.
Showing
32 changed files
with
237 additions
and
90 deletions
-
Please register or sign in to post a comment