Use p_new instead of xmalloc()
[apps/madmutt.git] / mutt_libesmtp.h
index d813b3a..c11ee2c 100644 (file)
@@ -7,12 +7,17 @@
  * please see the file GPL in the top level source directory.
  */
 
-#if !defined(LIBESMTP_H)
-#define LIBESMTP_H
+#ifndef _MUTT_LIBESMTP_H
+#define _MUTT_LIBESMTP_H
 
-int mutt_invoke_libesmtp (ADDRESS * from,       /* the sender */
-                          ADDRESS * to, ADDRESS * cc, ADDRESS * bcc,    /* recips */
+#if defined (USE_LIBESMTP) && (defined (USE_SSL) || defined (USE_GNUTLS))
+int mutt_libesmtp_check_usetls (const char* option, unsigned long p,
+                                char* errbuf, size_t errlen);
+#endif
+
+int mutt_libesmtp_invoke (address_t * from,       /* the sender */
+                          address_t * to, address_t * cc, address_t * bcc,    /* recips */
                           const char *msg,      /* file containing message */
                           int eightbit);        /* message contains 8bit chars */
 
-#endif /* !defined(LIBESMTP_H) */
+#endif /* !_MUTT_LIBESMTP_H */