mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-03 04:22:47 -05:00
Seat method to set the current trust status.
In terminal-based GUI applications, this is passed through to term_set_trust_status, to toggle whether lines are prefixed with the new trust sigil. In console applications, the function returns false, indicating to the backend that it should employ some other technique for spoofing protection.
This commit is contained in:
@ -373,6 +373,7 @@ static const char *gtk_seat_get_x_display(Seat *seat);
|
||||
#ifndef NOT_X_WINDOWS
|
||||
static bool gtk_seat_get_windowid(Seat *seat, long *id);
|
||||
#endif
|
||||
static bool gtk_seat_set_trust_status(Seat *seat, bool trusted);
|
||||
|
||||
static const SeatVtable gtk_seat_vt = {
|
||||
gtk_seat_output,
|
||||
@ -396,6 +397,7 @@ static const SeatVtable gtk_seat_vt = {
|
||||
#endif
|
||||
gtk_seat_get_window_pixel_size,
|
||||
gtk_seat_stripctrl_new,
|
||||
gtk_seat_set_trust_status,
|
||||
};
|
||||
|
||||
static void gtk_eventlog(LogPolicy *lp, const char *string)
|
||||
@ -5503,3 +5505,10 @@ void new_session_window(Conf *conf, const char *geometry_string)
|
||||
if (inst->ldisc) /* early backend failure might make this NULL already */
|
||||
ldisc_echoedit_update(inst->ldisc); /* cause ldisc to notice changes */
|
||||
}
|
||||
|
||||
static bool gtk_seat_set_trust_status(Seat *seat, bool trusted)
|
||||
{
|
||||
GtkFrontend *inst = container_of(seat, GtkFrontend, seat);
|
||||
term_set_trust_status(inst->term, trusted);
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user