[PATCH] agent: change protection flag character to a better indicator.
Ben Kibbey
bjk at luxsci.net
Sun Jun 8 01:50:42 CEST 2014
The flag is easier to understand (for me at least). Just wanted to be
sure before pushing since a new beta was just released.
diff --git a/agent/command.c b/agent/command.c
index e17232e..6cd311e 100644
--- a/agent/command.c
+++ b/agent/command.c
@@ -1038,7 +1038,7 @@ static const char hlp_keyinfo[] =
"\n"
"PROTECTION describes the key protection type:\n"
" 'P' - The key is protected with a passphrase,\n"
- " 'C' - The key is not protected,\n"
+ " 'N' - The key is not protected,\n"
" '-' - Unknown protection.\n"
"\n"
"FPR returns the formatted ssh-style fingerprint of the key. It is only\n"
@@ -1109,7 +1109,7 @@ do_one_keyinfo (ctrl_t ctrl, const unsigned char *grip, assuan_context_t ctx,
{
switch (keytype)
{
- case PRIVATE_KEY_CLEAR: protectionstr = "C"; keytypestr = "D";
+ case PRIVATE_KEY_CLEAR: protectionstr = "N"; keytypestr = "D";
break;
case PRIVATE_KEY_PROTECTED: protectionstr = "P"; keytypestr = "D";
break;
--
Ben Kibbey
More information about the Gnupg-devel
mailing list