From 618265d71514a0140b4fa09153219b981d4d5f4f Mon Sep 17 00:00:00 2001 From: perry.werneck@gmail.com Date: Tue, 8 Jan 2013 13:15:08 +0000 Subject: [PATCH] Melhorando mensagem quando a conexão é segura --- src/pw3270/v3270/security.c | 2 +- src/pw3270/v3270/widget.c | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/pw3270/v3270/security.c b/src/pw3270/v3270/security.c index 375f786..f0ea2d2 100644 --- a/src/pw3270/v3270/security.c +++ b/src/pw3270/v3270/security.c @@ -45,7 +45,7 @@ X509_V_OK, GTK_STOCK_DIALOG_AUTHENTICATION, N_( "Secure connection was successful." ), - N_( "This connection is secure and signed." ) + N_( "The connection is secure and signed." ) }, { diff --git a/src/pw3270/v3270/widget.c b/src/pw3270/v3270/widget.c index d97332d..c469d2e 100644 --- a/src/pw3270/v3270/widget.c +++ b/src/pw3270/v3270/widget.c @@ -297,7 +297,12 @@ gboolean v3270_query_tooltip(GtkWidget *widget, gint x, gint y, gboolean keyboa else if(lib3270_get_secure(GTK_V3270(widget)->host) == LIB3270_SSL_UNSECURE) { gtk_tooltip_set_icon_from_stock(tooltip,GTK_STOCK_INFO,GTK_ICON_SIZE_MENU); - gtk_tooltip_set_markup(tooltip,_( "Connection is insecure" ) ); + gtk_tooltip_set_markup(tooltip,_( "Identity not verified\nConnection is insecure" ) ); + } + else if(!lib3270_get_SSL_verify_result(GTK_V3270(widget)->host)) + { + gtk_tooltip_set_icon_from_stock(tooltip,GTK_STOCK_DIALOG_AUTHENTICATION,GTK_ICON_SIZE_MENU); + gtk_tooltip_set_markup(tooltip,_( "Identity verified\nThe connection is secure" ) ); } else { -- libgit2 0.21.2