diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-03-10 08:15:49 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-03-10 08:15:49 +0800 |
commit | abe164fb3990d0aa36975c8012fabec57f5b4348 (patch) | |
tree | b6a0c7a80aa022c4ae069e8e6b5adf8f027c2b63 /camel/camel-session.h | |
parent | b860bc0e2d14adedefc7318eeacafbf1d552e8ff (diff) | |
download | gsoc2013-evolution-abe164fb3990d0aa36975c8012fabec57f5b4348.tar gsoc2013-evolution-abe164fb3990d0aa36975c8012fabec57f5b4348.tar.gz gsoc2013-evolution-abe164fb3990d0aa36975c8012fabec57f5b4348.tar.bz2 gsoc2013-evolution-abe164fb3990d0aa36975c8012fabec57f5b4348.tar.lz gsoc2013-evolution-abe164fb3990d0aa36975c8012fabec57f5b4348.tar.xz gsoc2013-evolution-abe164fb3990d0aa36975c8012fabec57f5b4348.tar.zst gsoc2013-evolution-abe164fb3990d0aa36975c8012fabec57f5b4348.zip |
Created a new mode (CAMEL_AUTHENTICATOR_ACCEPT) which is a Yes/No prompt
2001-03-09 Jeffrey Stedfast <fejj@ximian.com>
* camel-session.c (camel_session_query_authenticator): Created a
new mode (CAMEL_AUTHENTICATOR_ACCEPT) which is a Yes/No prompt to
the user. This will be needed by the SSL/TLS code to come. Also
changed the return value to a gpointer rather than a char* to
allow the returning of TRUE/FALSE values.
* camel.c: Wrap stuff with HAVE_NSS
svn path=/trunk/; revision=8623
Diffstat (limited to 'camel/camel-session.h')
-rw-r--r-- | camel/camel-session.h | 27 |
1 files changed, 8 insertions, 19 deletions
diff --git a/camel/camel-session.h b/camel/camel-session.h index c530c6ffe6..39b65f7da6 100644 --- a/camel/camel-session.h +++ b/camel/camel-session.h @@ -44,18 +44,15 @@ extern "C" { typedef enum { - CAMEL_AUTHENTICATOR_ASK, CAMEL_AUTHENTICATOR_TELL + CAMEL_AUTHENTICATOR_ASK, + CAMEL_AUTHENTICATOR_TELL, + CAMEL_AUTHENTICATOR_ACCEPT } CamelAuthCallbackMode; -typedef char *(*CamelAuthCallback) (CamelAuthCallbackMode mode, - char *data, gboolean secret, - CamelService *service, char *item, - CamelException *ex); - -#ifdef U_CANT_TOUCH_THIS -/* this is just a guess as to what we'll actually need */ -typedef gboolean (*CamelBadCertCallback) (char *data); -#endif +typedef gpointer (*CamelAuthCallback) (CamelAuthCallbackMode mode, + char *data, gboolean secret, + CamelService *service, char *item, + CamelException *ex); typedef gboolean (*CamelTimeoutCallback) (gpointer data); typedef guint (*CamelTimeoutRegisterCallback) (guint32 interval, @@ -70,9 +67,6 @@ struct _CamelSession char *storage_path; CamelAuthCallback authenticator; -#ifdef U_CANT_TOUCH_THIS - CamelBadCertCallback cert_authenticator; -#endif CamelTimeoutRegisterCallback registrar; CamelTimeoutRemoveCallback remover; @@ -119,7 +113,7 @@ char * camel_session_get_storage_path (CamelSession *session, CamelService *service, CamelException *ex); -char * camel_session_query_authenticator (CamelSession *session, +gpointer camel_session_query_authenticator (CamelSession *session, CamelAuthCallbackMode mode, char *prompt, gboolean secret, @@ -127,11 +121,6 @@ char * camel_session_query_authenticator (CamelSession *session, char *item, CamelException *ex); -#ifdef U_CANT_TOUCH_THIS -gboolean camel_session_query_cert_authenticator (CamelSession *session, - char *prompt); -#endif - guint camel_session_register_timeout (CamelSession *session, guint32 interval, CamelTimeoutCallback callback, |