projects
/
claws.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
bf3f91d
)
show owner trust in full info
author
Paul
<paul@claws-mail.org>
Thu, 26 Jun 2014 04:19:11 +0000
(
05:19
+0100)
committer
Paul
<paul@claws-mail.org>
Thu, 26 Jun 2014 04:19:11 +0000
(
05:19
+0100)
src/plugins/pgpcore/sgpgme.c
patch
|
blob
|
history
diff --git
a/src/plugins/pgpcore/sgpgme.c
b/src/plugins/pgpcore/sgpgme.c
index b95ad7a77347d7ecfe8131984c063c94377724f7..e6b7acbc644fca0948786200d70dae2dee02a8db 100644
(file)
--- a/
src/plugins/pgpcore/sgpgme.c
+++ b/
src/plugins/pgpcore/sgpgme.c
@@
-153,6
+153,22
@@
static const gchar *get_validity_str(unsigned long validity)
}
}
}
}
+static const gchar *get_owner_trust_str(unsigned long owner_trust)
+{
+ switch (gpgme_err_code(owner_trust)) {
+ case GPGME_VALIDITY_NEVER:
+ return _("Untrusted");
+ case GPGME_VALIDITY_MARGINAL:
+ return _("Marginal");
+ case GPGME_VALIDITY_FULL:
+ return _("Full");
+ case GPGME_VALIDITY_ULTIMATE:
+ return _("Ultimate");
+ default:
+ return _("Unknown");
+ }
+}
+
static gchar *extract_name(const char *uid)
{
if (uid == NULL)
static gchar *extract_name(const char *uid)
{
if (uid == NULL)
@@
-330,6
+346,8
@@
gchar *sgpgme_sigstat_info_full(gpgme_ctx_t ctx, gpgme_verify_result_t status)
j++;
user = user->next;
}
j++;
user = user->next;
}
+ g_string_append_printf(siginfo,_("Owner Trust: %s\n"),
+ get_owner_trust_str(key->owner_trust));
g_string_append(siginfo,
_("Primary key fingerprint:"));
const char* primary_fpr = NULL;
g_string_append(siginfo,
_("Primary key fingerprint:"));
const char* primary_fpr = NULL;