From 63e96e100291b330e75cc3b3b49795c720e5ffa0 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Fri, 27 Apr 2001 21:08:08 +0000 Subject: Redo this a lot so that instead of having a class full of callbacks, we * camel-session.c: Redo this a lot so that instead of having a class full of callbacks, we have a subclassable class. Also, replace the increasingly horrifying camel_session_query_authenticator with three new routines, camel_session_get_password, camel_session_forget_password, and camel_session_alert_user. * camel-pgp-context.c: * camel-pkcs7-context.c: * camel-smime-context.c: * providers/imap/camel-imap-store.c: * providers/pop3/camel-pop3-store.c: * providers/smtp/camel-smtp-transport.c: Use camel_session_get_password / camel_session_forget_password. * camel-tcp-stream-ssl.c (ssl_bad_cert): Use camel_session_alert_user. svn path=/trunk/; revision=9617 --- camel/camel-smime-context.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'camel/camel-smime-context.c') diff --git a/camel/camel-smime-context.c b/camel/camel-smime-context.c index 1f0f81e86c..bbe311385b 100644 --- a/camel/camel-smime-context.c +++ b/camel/camel-smime-context.c @@ -197,9 +197,8 @@ get_password (void *arg, SECKEYKeyDBHandle *handle) return pwitem; prompt = g_strdup_printf (_("Please enter your password for %s"), userid); - passwd = camel_session_query_authenticator (session, CAMEL_AUTHENTICATOR_ASK, - prompt, TRUE, NULL, userid, - NULL); + passwd = camel_session_get_password (session, prompt, TRUE, + NULL, userid, NULL); g_free (prompt); /* hash the password */ -- cgit v1.2.3