mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-06 22:12: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:
@ -1810,12 +1810,9 @@ void term_free(Terminal *term)
|
||||
sfree(term);
|
||||
}
|
||||
|
||||
void term_set_trust_status(Terminal *term, SeatTrustStatus status)
|
||||
void term_set_trust_status(Terminal *term, bool trusted)
|
||||
{
|
||||
/* We don't need to distinguish STS_UNTRUSTED from STS_SESSION,
|
||||
* because the terminal's method of communicating trust can flip
|
||||
* back and forth between trusted and untrusted easily. */
|
||||
term->trusted = (status == STS_TRUSTED);
|
||||
term->trusted = trusted;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user