diff options
Diffstat (limited to 'src/sslmanager.c')
-rw-r--r-- | src/sslmanager.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/sslmanager.c b/src/sslmanager.c index 66beafbe..e184c699 100644 --- a/src/sslmanager.c +++ b/src/sslmanager.c @@ -1,6 +1,6 @@ /* * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client - * Copyright (C) 1999-2009 Hiroyuki Yamamoto + * Copyright (C) 1999-2010 Hiroyuki Yamamoto * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -64,6 +64,8 @@ gint ssl_manager_verify_cert(SockInfo *sockinfo, const gchar *hostname, if (verify_result == X509_V_OK) return 0; + gdk_threads_enter(); + title = _("SSL certificate verify failed"); subject = X509_NAME_oneline(X509_get_subject_name(server_cert), @@ -201,6 +203,8 @@ gint ssl_manager_verify_cert(SockInfo *sockinfo, const gchar *hostname, result = gtk_dialog_run(GTK_DIALOG(dialog)); gtk_widget_destroy(dialog); + gdk_threads_leave(); + switch (result) { case GTK_RESPONSE_ACCEPT: return 0; |