diff options
Diffstat (limited to 'camel/camel-tcp-stream-ssl.c')
-rw-r--r-- | camel/camel-tcp-stream-ssl.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/camel/camel-tcp-stream-ssl.c b/camel/camel-tcp-stream-ssl.c index 7e521b0a4d..7fa81484da 100644 --- a/camel/camel-tcp-stream-ssl.c +++ b/camel/camel-tcp-stream-ssl.c @@ -336,7 +336,7 @@ ssl_bad_cert (void *data, PRFileDesc *sockfd) CERTCertificate *cert; CamelService *service; char *prompt, *cert_str; - gpointer accept; + gboolean accept; g_return_val_if_fail (data != NULL, SECFailure); g_return_val_if_fail (CAMEL_IS_SERVICE (data), SECFailure); @@ -366,12 +366,10 @@ ssl_bad_cert (void *data, PRFileDesc *sockfd) g_free (cert_str); /* query the user to find out if we want to accept this certificate */ - accept = camel_session_query_authenticator (service->session, CAMEL_AUTHENTICATOR_ACCEPT, - prompt, FALSE, service, NULL, NULL); - + accept = camel_session_alert_user (service->session, CAMEL_SESSION_ALERT_WARNING, prompt, TRUE, NULL); g_free (prompt); - if (GPOINTER_TO_INT (accept)) + if (accept) return SECSuccess; return SECFailure; |