Commit 1cf442faa56f9ee753e60b4eedb40a5c44fcb794
1 parent
a8ddc956
Exists in
master
and in
1 other branch
Melhorando mensagem quando a conexão é segura
Showing
2 changed files
with
7 additions
and
2 deletions
Show diff stats
security.c
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 | { | ... | ... |