Commit 618265d71514a0140b4fa09153219b981d4d5f4f
1 parent
4cf65783
Exists in
master
and in
5 other branches
Melhorando mensagem quando a conexão é segura
Showing
2 changed files
with
7 additions
and
2 deletions
Show diff stats
src/pw3270/v3270/security.c
src/pw3270/v3270/widget.c
| ... | ... | @@ -297,7 +297,12 @@ gboolean v3270_query_tooltip(GtkWidget *widget, gint x, gint y, gboolean keyboa |
| 297 | 297 | else if(lib3270_get_secure(GTK_V3270(widget)->host) == LIB3270_SSL_UNSECURE) |
| 298 | 298 | { |
| 299 | 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 | 307 | else |
| 303 | 308 | { | ... | ... |