1
0
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:
Roman Zeyde 2016-10-17 19:08:02 +03:00 committed by Pavol Rusnak
parent 771a0c014b
commit 68a1bcc908

View File

@ -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;