From 68a1bcc9081066fe840a9a07fe3346db76dca396 Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Mon, 17 Oct 2016 19:08:02 +0300 Subject: [PATCH] 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). --- firmware/layout2.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/firmware/layout2.c b/firmware/layout2.c index c26d0fcab6..ca226ca87d 100644 --- a/firmware/layout2.c +++ b/firmware/layout2.c @@ -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;