aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/imap/camel-imap-store.h
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-10-31 01:00:06 +0800
committerDan Winship <danw@src.gnome.org>2000-10-31 01:00:06 +0800
commitdd50048ab4db6cf804c3fc59b55a8ed140f45631 (patch)
tree8e71092987d62fb400aec01e9ad6bc419ca92ae3 /camel/providers/imap/camel-imap-store.h
parentabe39be1720a9ae3fd3402a5a8b777473319fbdb (diff)
downloadgsoc2013-evolution-dd50048ab4db6cf804c3fc59b55a8ed140f45631.tar
gsoc2013-evolution-dd50048ab4db6cf804c3fc59b55a8ed140f45631.tar.gz
gsoc2013-evolution-dd50048ab4db6cf804c3fc59b55a8ed140f45631.tar.bz2
gsoc2013-evolution-dd50048ab4db6cf804c3fc59b55a8ed140f45631.tar.lz
gsoc2013-evolution-dd50048ab4db6cf804c3fc59b55a8ed140f45631.tar.xz
gsoc2013-evolution-dd50048ab4db6cf804c3fc59b55a8ed140f45631.tar.zst
gsoc2013-evolution-dd50048ab4db6cf804c3fc59b55a8ed140f45631.zip
New file with code for IMAP authentication mechanisms. (Currently just
* providers/imap/camel-imap-auth.c: New file with code for IMAP authentication mechanisms. (Currently just krb4, and without integrity/privacy protection). * providers/imap/Makefile.am: Add camel-imap-auth.[ch] and krb4 CFLAGS/LDFLAGS * providers/imap/camel-imap-store.c (connect_to_server): Split out from imap_connect. Just does the basic connect and CAPABILITY check. Redo the CAPABILITY code more robustly. (query_auth_types_connected): Do this right rather than punting to query_auth_types_generic. Check for KERBEROS_V4 if compiled with krb4 support. (query_auth_types_generic): Mention KERBEROS_V4 if compiled with krb4 support. (imap_connect): Use connect_to_server(). svn path=/trunk/; revision=6272
Diffstat (limited to 'camel/providers/imap/camel-imap-store.h')
-rw-r--r--camel/providers/imap/camel-imap-store.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/camel/providers/imap/camel-imap-store.h b/camel/providers/imap/camel-imap-store.h
index b5038ea7de..8fd996c420 100644
--- a/camel/providers/imap/camel-imap-store.h
+++ b/camel/providers/imap/camel-imap-store.h
@@ -45,6 +45,14 @@ typedef enum {
IMAP_LEVEL_IMAP4REV1
} CamelImapServerLevel;
+#define IMAP_CAPABILITY_IMAP4 (1 << 0)
+#define IMAP_CAPABILITY_IMAP4REV1 (1 << 1)
+#define IMAP_CAPABILITY_STATUS (1 << 2)
+#define IMAP_CAPABILITY_NAMESPACE (1 << 3)
+#define IMAP_CAPABILITY_AUTH_KERBEROS_V4 (1 << 4)
+#define IMAP_CAPABILITY_AUTH_GSSAPI (1 << 5)
+#define IMAP_CAPABILITY_UIDPLUS (1 << 6)
+#define IMAP_CAPABILITY_LITERALPLUS (1 << 7)
typedef struct {
CamelRemoteStore parent_object;
@@ -54,7 +62,7 @@ typedef struct {
guint32 command;
CamelImapServerLevel server_level;
- gboolean has_status_capability;
+ guint32 capabilities;
gchar dir_sep, *storage_path, *base_url;