When adding GPG collaborator, include full fingerprint in commit message

Short key IDs are bad (https://evil32.com/)

Closes: #253
This commit is contained in:
Andrew Ayer
2022-06-07 12:34:04 -04:00
parent a1e6311f56
commit 08dbdcfed4
3 changed files with 2 additions and 8 deletions

View File

@@ -61,12 +61,6 @@ static std::string gpg_nth_column (const std::string& line, unsigned int col)
line.substr(pos);
}
// given a key fingerprint, return the last 8 nibbles
std::string gpg_shorten_fingerprint (const std::string& fingerprint)
{
return fingerprint.size() == 40 ? fingerprint.substr(32) : fingerprint;
}
// given a key fingerprint, return the key's UID (e.g. "John Smith <jsmith@example.com>")
std::string gpg_get_uid (const std::string& fingerprint)
{