new certificate presentation
[claws.git] / src / ssl_manager.c
index df28513b34e6c27b0aa3962fc75c5257732763f9..16be64dac3d6cac3a74ace0b33003ad2f563362e 100644 (file)
@@ -34,6 +34,7 @@
 #include "intl.h"
 #include "gtksctree.h"
 #include "alertpanel.h"
+#include "sslcertwindow.h"
 
 static struct SSLManager
 {
@@ -232,8 +233,6 @@ static void ssl_manager_view_cb(GtkWidget *widget,
 {
        SSLCertificate *cert;
        GList *rowlist;
-       gchar *cert_str;
-       gchar *str;
        
        rowlist = GTK_CLIST(manager.certlist)->selection;
        if (!rowlist) 
@@ -246,13 +245,7 @@ static void ssl_manager_view_cb(GtkWidget *widget,
        if (!cert)
                return;
 
-       cert_str = ssl_certificate_to_string(cert);
-       str = g_strconcat(_("SSL certificate for "),cert->host, ":\n\n", cert_str, NULL);
-       alertpanel(_("SSL Certificate"),
-               str,
-               _("OK"), NULL, NULL);
-       g_free(str);
-       g_free(cert_str);
+       sslcertwindow_show_cert(cert);
        
        
 }