diff options
| author | James Booth <boothj5@gmail.com> | 2015-03-22 01:03:06 +0000 |
|---|---|---|
| committer | James Booth <boothj5@gmail.com> | 2015-03-22 01:03:06 +0000 |
| commit | 8a5d1fef2930036d34bf02d0b15d0b6239725ffd (patch) | |
| tree | 573cf23d9ac350e83727adb58a2971a71f3a1206 /src/command | |
| parent | fd86615549a76c050dbcb50deaefde199d8216c7 (diff) | |
| download | profani-tty-8a5d1fef2930036d34bf02d0b15d0b6239725ffd.tar.gz | |
Added Id and fingerprint to pgp key list
Diffstat (limited to 'src/command')
| -rw-r--r-- | src/command/commands.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/command/commands.c b/src/command/commands.c index 5d1ddf12..bb8c0381 100644 --- a/src/command/commands.c +++ b/src/command/commands.c @@ -4073,14 +4073,18 @@ cmd_pgp(gchar **args, struct cmd_help_t help) if (g_strcmp0(args[0], "keys") == 0) { GSList *keys = p_gpg_list_keys(); if (keys) { + cons_show("PGP keys:"); while (keys) { - cons_debug("Key: %s", keys->data); + ProfPGPKey *key = keys->data; + cons_show(" %s", key->name); + cons_show(" ID : %s", key->id); + cons_show(" Fingerprint : %s", key->fp); keys = g_slist_next(keys); } } else { - cons_debug("No keys found"); + cons_show("No keys found"); } - g_slist_free_full(keys, (GDestroyNotify)free); + g_slist_free_full(keys, (GDestroyNotify)p_gpg_free_key); } else if (g_strcmp0(args[0], "libver") == 0) { const char *libver = p_gpg_libver(); if (libver) { |