diff options
author | Dan Winship <danw@src.gnome.org> | 2000-06-10 06:00:53 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2000-06-10 06:00:53 +0800 |
commit | 2aefadf282648010e9403e4a7f643fe78dc6df53 (patch) | |
tree | 9bb5f4816da0d70674ae4e27cf0f131f9c94b466 /camel/camel-session.h | |
parent | cd84bd758091a39792e13c46804b496ce34fd940 (diff) | |
download | gsoc2013-evolution-2aefadf282648010e9403e4a7f643fe78dc6df53.tar gsoc2013-evolution-2aefadf282648010e9403e4a7f643fe78dc6df53.tar.gz gsoc2013-evolution-2aefadf282648010e9403e4a7f643fe78dc6df53.tar.bz2 gsoc2013-evolution-2aefadf282648010e9403e4a7f643fe78dc6df53.tar.lz gsoc2013-evolution-2aefadf282648010e9403e4a7f643fe78dc6df53.tar.xz gsoc2013-evolution-2aefadf282648010e9403e4a7f643fe78dc6df53.tar.zst gsoc2013-evolution-2aefadf282648010e9403e4a7f643fe78dc6df53.zip |
Add another argument, "mode", which can be CAMEL_AUTHENTICATOR_ASK or
* camel-session.c (camel_session_query_authenticator): Add another
argument, "mode", which can be CAMEL_AUTHENTICATOR_ASK or
CAMEL_AUTHENTICATOR_TELL, so callers can get the app to un-cache
bad info.
* providers/pop3/camel-pop3-store.c (pop3_connect): uncache the
password if it doesn't work.
svn path=/trunk/; revision=3496
Diffstat (limited to 'camel/camel-session.h')
-rw-r--r-- | camel/camel-session.h | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/camel/camel-session.h b/camel/camel-session.h index e6a6b2ffc2..c669a4b223 100644 --- a/camel/camel-session.h +++ b/camel/camel-session.h @@ -43,7 +43,12 @@ extern "C" { #define CAMEL_IS_SESSION(o) (GTK_CHECK_TYPE((o), CAMEL_SESSION_TYPE)) -typedef char *(*CamelAuthCallback) (char *prompt, gboolean secret, +typedef enum { + CAMEL_AUTHENTICATOR_ASK, CAMEL_AUTHENTICATOR_TELL +} CamelAuthCallbackMode; + +typedef char *(*CamelAuthCallback) (CamelAuthCallbackMode mode, + char *data, gboolean secret, CamelService *service, char *item, CamelException *ex); @@ -88,12 +93,13 @@ CamelService * camel_session_get_service (CamelSession *session, ((CamelTransport *) camel_session_get_service (session, url_string, CAMEL_PROVIDER_TRANSPORT, ex)) -char * camel_session_query_authenticator (CamelSession *session, - char *prompt, - gboolean secret, - CamelService *service, - char *item, - CamelException *ex); +char * camel_session_query_authenticator (CamelSession *session, + CamelAuthCallbackMode mode, + char *prompt, + gboolean secret, + CamelService *service, + char *item, + CamelException *ex); #ifdef __cplusplus } |