mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-24 15:28:10 +00:00
Add specific layout for GPG signature (#122)
Following ECDH usage of layoutDecryptIdentity (which shows "GPG decrypt for:") this commit adds a specific case for layoutSignIdentity, showing "GPG sign for:", instead of "GPG login to:" (which is less appropriate in the GPG context).
This commit is contained in:
parent
771a0c014b
commit
68a1bcc908
@ -304,6 +304,8 @@ void layoutSignIdentity(const IdentityType *identity, const char *challenge)
|
||||
if (identity->has_proto && identity->proto[0]) {
|
||||
if (strcmp(identity->proto, "https") == 0) {
|
||||
strlcpy(row_proto, "Web sign in to:", sizeof(row_proto));
|
||||
} else if (strcmp(identity->proto, "gpg") == 0) {
|
||||
strlcpy(row_proto, "GPG sign for:", sizeof(row_proto));
|
||||
} else {
|
||||
strlcpy(row_proto, identity->proto, sizeof(row_proto));
|
||||
char *p = row_proto;
|
||||
|
Loading…
Reference in New Issue
Block a user