mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-06 05:52:48 -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:
@ -339,6 +339,7 @@ static void win_seat_notify_remote_exit(Seat *seat);
|
||||
static void win_seat_connection_fatal(Seat *seat, const char *msg);
|
||||
static void win_seat_update_specials_menu(Seat *seat);
|
||||
static void win_seat_set_busy_status(Seat *seat, BusyStatus status);
|
||||
static bool win_seat_set_trust_status(Seat *seat, bool trusted);
|
||||
|
||||
static const SeatVtable win_seat_vt = {
|
||||
win_seat_output,
|
||||
@ -358,6 +359,7 @@ static const SeatVtable win_seat_vt = {
|
||||
nullseat_get_windowid,
|
||||
win_seat_get_window_pixel_size,
|
||||
win_seat_stripctrl_new,
|
||||
win_seat_set_trust_status,
|
||||
};
|
||||
static Seat win_seat_impl = { &win_seat_vt };
|
||||
Seat *const win_seat = &win_seat_impl;
|
||||
@ -5824,3 +5826,9 @@ void agent_schedule_callback(void (*callback)(void *, void *, int),
|
||||
c->len = len;
|
||||
PostMessage(hwnd, WM_AGENT_CALLBACK, 0, (LPARAM)c);
|
||||
}
|
||||
|
||||
static bool win_seat_set_trust_status(Seat *seat, bool trusted)
|
||||
{
|
||||
term_set_trust_status(term, trusted);
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user