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).
pull/25/head
Roman Zeyde 8 years ago committed by Pavol Rusnak
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…
Cancel
Save