summaryrefslogtreecommitdiffstats
path: root/protocol.c
diff options
context:
space:
mode:
Diffstat (limited to 'protocol.c')
-rw-r--r--protocol.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/protocol.c b/protocol.c
index 0b44df8..70b80a4 100644
--- a/protocol.c
+++ b/protocol.c
@@ -303,6 +303,18 @@ do_session (smtp_session_t session)
#ifdef USE_TLS
session->using_tls = 0;
#endif
+#if 1
+ if (session->starttls_enabled == Starttls_OVER_SSL)
+ {
+ if ( !(select_starttls (session) &&
+ negotiate_ssl (conn, session) == 0) )
+ continue;
+ /* Do we handle here negotiate_ssl returning -1? We might
+ leave a dangling open socket here. */
+ }
+#endif
+ printf("%s A %d\n", __func__, session->using_tls);
+
nresp = 0;
session->cmd_state = session->rsp_state = 0;