mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-03 04:22:47 -05:00
Windows Pageant: use nicer key-type strings.
If you load a certified key into Windows Pageant, the official SSH id for the key type is so long that it overflows its space in the list box and overlaps the key fingerprint hash. This commit introduces yet another footling little ssh_keyalg method which returns a shorter human-readable description of the key type, and uses that in the Windows Pageant list box only. (Not in the Unix Pageant list, though, because being output to stdout, that seems like something people are more likely to want to machine-read, which firstly means we shouldn't change it lightly, and secondly, if we did change it we'd want to avoid having a variable number of spaces in the replacement key type text.)
This commit is contained in:
@ -490,6 +490,8 @@ static void dsa_sign(ssh_key *key, ptrlen data, unsigned flags, BinarySink *bs)
|
||||
mp_free(s);
|
||||
}
|
||||
|
||||
static char *dsa_alg_desc(const ssh_keyalg *self) { return dupstr("DSA"); }
|
||||
|
||||
const ssh_keyalg ssh_dsa = {
|
||||
.new_pub = dsa_new_pub,
|
||||
.new_priv = dsa_new_priv,
|
||||
@ -508,6 +510,7 @@ const ssh_keyalg ssh_dsa = {
|
||||
.pubkey_bits = dsa_pubkey_bits,
|
||||
.supported_flags = nullkey_supported_flags,
|
||||
.alternate_ssh_id = nullkey_alternate_ssh_id,
|
||||
.alg_desc = dsa_alg_desc,
|
||||
.ssh_id = "ssh-dss",
|
||||
.cache_id = "dss",
|
||||
};
|
||||
|
Reference in New Issue
Block a user