SMTP + STARTTLS



hi,

The following patch will enable the use of STARTTLS if it is available.
This should be harmless as long as at least libESMTP 0.8.4 is in use.
If the remote SMTP server does not offer the STARTTLS extension, it has
no effect whatsoever.

The only problematic situation will be if the remote offers STARTTLS and
requires the client to have a certificate.  LibESMTP 0.8.5 will have
certificate handling code implemented.

Regards
Brian

Index: libbalsa/send.c
===================================================================
RCS file: /cvs/gnome/balsa/libbalsa/send.c,v
retrieving revision 1.123
diff -u -r1.123 send.c
--- libbalsa/send.c     2001/08/16 15:54:21     1.123
+++ libbalsa/send.c     2001/08/24 13:28:13
@@ -459,6 +459,9 @@
     session = smtp_create_session ();
     smtp_set_server (session, smtp_server);
  
+    /* Tell libESMTP it can use the SMTP STARTTLS extension.  */
+    smtp_starttls_enable (session, Starttls_ENABLED);
+
     /* Now tell libESMTP it can use the SMTP AUTH extension.  */
     smtp_auth_set_context (session, smtp_authctx);
  




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]