Commit 618265d71514a0140b4fa09153219b981d4d5f4f

Authored by perry.werneck@gmail.com
1 parent 4cf65783

Melhorando mensagem quando a conexão é segura

src/pw3270/v3270/security.c
@@ -45,7 +45,7 @@ @@ -45,7 +45,7 @@
45 X509_V_OK, 45 X509_V_OK,
46 GTK_STOCK_DIALOG_AUTHENTICATION, 46 GTK_STOCK_DIALOG_AUTHENTICATION,
47 N_( "Secure connection was successful." ), 47 N_( "Secure connection was successful." ),
48 - N_( "This connection is secure and signed." ) 48 + N_( "The connection is secure and signed." )
49 }, 49 },
50 50
51 { 51 {
src/pw3270/v3270/widget.c
@@ -297,7 +297,12 @@ gboolean v3270_query_tooltip(GtkWidget *widget, gint x, gint y, gboolean keyboa @@ -297,7 +297,12 @@ gboolean v3270_query_tooltip(GtkWidget *widget, gint x, gint y, gboolean keyboa
297 else if(lib3270_get_secure(GTK_V3270(widget)->host) == LIB3270_SSL_UNSECURE) 297 else if(lib3270_get_secure(GTK_V3270(widget)->host) == LIB3270_SSL_UNSECURE)
298 { 298 {
299 gtk_tooltip_set_icon_from_stock(tooltip,GTK_STOCK_INFO,GTK_ICON_SIZE_MENU); 299 gtk_tooltip_set_icon_from_stock(tooltip,GTK_STOCK_INFO,GTK_ICON_SIZE_MENU);
300 - gtk_tooltip_set_markup(tooltip,_( "Connection is insecure" ) ); 300 + gtk_tooltip_set_markup(tooltip,_( "<b>Identity not verified</b>\nConnection is insecure" ) );
  301 + }
  302 + else if(!lib3270_get_SSL_verify_result(GTK_V3270(widget)->host))
  303 + {
  304 + gtk_tooltip_set_icon_from_stock(tooltip,GTK_STOCK_DIALOG_AUTHENTICATION,GTK_ICON_SIZE_MENU);
  305 + gtk_tooltip_set_markup(tooltip,_( "<b>Identity verified</b>\nThe connection is secure" ) );
301 } 306 }
302 else 307 else
303 { 308 {