aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-sasl-popb4smtp.h
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2001-08-03 23:33:57 +0800
committerMichael Zucci <zucchi@src.gnome.org>2001-08-03 23:33:57 +0800
commit99e55fbc6b1ad39fd840c8b917583bc1b2cce2dd (patch)
tree81f1d48fe93bc80703eaeba37dcb94ed29e226db /camel/camel-sasl-popb4smtp.h
parent68518c1d989ded3031c490fb0b542424aef369cf (diff)
downloadgsoc2013-evolution-99e55fbc6b1ad39fd840c8b917583bc1b2cce2dd.tar
gsoc2013-evolution-99e55fbc6b1ad39fd840c8b917583bc1b2cce2dd.tar.gz
gsoc2013-evolution-99e55fbc6b1ad39fd840c8b917583bc1b2cce2dd.tar.bz2
gsoc2013-evolution-99e55fbc6b1ad39fd840c8b917583bc1b2cce2dd.tar.lz
gsoc2013-evolution-99e55fbc6b1ad39fd840c8b917583bc1b2cce2dd.tar.xz
gsoc2013-evolution-99e55fbc6b1ad39fd840c8b917583bc1b2cce2dd.tar.zst
gsoc2013-evolution-99e55fbc6b1ad39fd840c8b917583bc1b2cce2dd.zip
special case popb4smtp auth before we try and connect, and do the magic
2001-08-03 Not Zed <NotZed@Ximian.com> * providers/smtp/camel-smtp-transport.c (smtp_connect): special case popb4smtp auth before we try and connect, and do the magic here first. 2001-08-02 Not Zed <NotZed@Ximian.com> * providers/smtp/camel-smtp-transport.c (smtp_connect): Check for POPB4SMTP separate to the esmtp auth list. (smtp_auth): If creating the sasl object means it is already authenticated, then exit early. Sort of 'clean hack' to help popb4smtp work. (smtp_auth): Unref the sasl object, clean up a memleak i think. * providers/smtp/camel-smtp-provider.c (camel_provider_module_init): Added POPB4SMTP auth type. * camel-sasl.c (camel_sasl_authtype): Added POPB4SMTP type. * camel-sasl-popb4smtp.c: New file for pop before smtp 'authentication'. * Makefile.am (libcamel_la_SOURCES, HEADERS): Add camel-sasl-popb4smtp.[ch]. svn path=/trunk/; revision=11615
Diffstat (limited to 'camel/camel-sasl-popb4smtp.h')
-rw-r--r--camel/camel-sasl-popb4smtp.h59
1 files changed, 59 insertions, 0 deletions
diff --git a/camel/camel-sasl-popb4smtp.h b/camel/camel-sasl-popb4smtp.h
new file mode 100644
index 0000000000..187789a4df
--- /dev/null
+++ b/camel/camel-sasl-popb4smtp.h
@@ -0,0 +1,59 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
+/*
+ * Authors: Michael Zucchi <notzed@ximian.com>
+ *
+ * Copyright 2001 Ximian, Inc. (www.ximian.com)
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Street #330, Boston, MA 02111-1307, USA.
+ *
+ */
+
+#ifndef CAMEL_SASL_POPB4SMTP_H
+#define CAMEL_SASL_POPB4SMTP_H
+
+#ifdef __cplusplus
+extern "C" {
+#pragma }
+#endif /* __cplusplus }*/
+
+#include <camel/camel-sasl.h>
+
+#define CAMEL_SASL_POPB4SMTP_TYPE (camel_sasl_popb4smtp_get_type ())
+#define CAMEL_SASL_POPB4SMTP(obj) (CAMEL_CHECK_CAST((obj), CAMEL_SASL_POPB4SMTP_TYPE, CamelSaslPOPB4SMTP))
+#define CAMEL_SASL_POPB4SMTP_CLASS(k) (CAMEL_CHECK_CLASS_CAST ((k), CAMEL_SASL_POPB4SMTP_TYPE, CamelSaslPOPB4SMTPClass))
+#define CAMEL_IS_SASL_POPB4SMTP(o) (CAMEL_CHECK_TYPE((o), CAMEL_SASL_POPB4SMTP_TYPE))
+
+typedef struct _CamelSaslPOPB4SMTP {
+ CamelSasl parent_object;
+
+} CamelSaslPOPB4SMTP;
+
+
+typedef struct _CamelSaslPOPB4SMTPClass {
+ CamelSaslClass parent_class;
+
+} CamelSaslPOPB4SMTPClass;
+
+
+/* Standard Camel function */
+CamelType camel_sasl_popb4smtp_get_type (void);
+
+extern CamelServiceAuthType camel_sasl_popb4smtp_authtype;
+
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
+#endif /* CAMEL_SASL_POPB4SMTP_H */