diff options
author | José Fonseca <jrfonseca@users.sourceforge.net> | 2003-11-07 11:54:24 +0000 |
---|---|---|
committer | José Fonseca <jrfonseca@users.sourceforge.net> | 2003-11-07 11:54:24 +0000 |
commit | 3837a2bc1158b4044ae5dddb3df0a9285949f228 (patch) | |
tree | 53b2849c4d49b8a03f5ec10b0f48215c03215e3e | |
parent | bfcbc48ddf4d13c73b09ed66499781f451dcaf81 (diff) |
Don't call smtp_starttls_set_password_cb() unless StartTLS is enabled (Maurice Galland).
-rw-r--r-- | NEWS | 3 | ||||
-rw-r--r-- | smtp.c | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -3,6 +3,9 @@ News * Version 0.4.2 (under development): + * Fixed another bug which prevented to send mail when libesmtp had no + openssl support (Maurice Galland). + * Detailed documentation on how to use the StartTLS extension. More verbosity on StartTLS error messages. @@ -433,7 +433,7 @@ void smtp_send(message_t *msg) /* Use our callback for X.509 certificate passwords. If STARTTLS is not in * use or disabled in configure, the following is harmless. */ - if(!smtp_starttls_set_password_cb (tlsinteract, identity)) + if(identity->starttls && !smtp_starttls_set_password_cb (tlsinteract, identity)) goto failure; /* Now tell libESMTP it can use the SMTP AUTH extension. */ |