Added cmd_pgp tests

This commit is contained in:
James Booth
2015-06-18 00:12:01 +01:00
parent 97ba9d2692
commit 85cc5ab50d
6 changed files with 69 additions and 4 deletions

View File

@@ -4123,7 +4123,10 @@ gboolean
cmd_pgp(ProfWin *window, gchar **args, struct cmd_help_t help)
{
#ifdef HAVE_LIBGPGME
if (g_strcmp0(args[0], "keys") == 0) {
if (args[0] == NULL) {
cons_show("Usage: %s", help.usage);
return TRUE;
} else if (g_strcmp0(args[0], "keys") == 0) {
GSList *keys = p_gpg_list_keys();
if (keys) {
cons_show("PGP keys:");