1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

Nonrevocable key signature support via "nrsign". These sigs can expire,

but cannot be revoked.  Any revocation certificates for them are ignored.
This commit is contained in:
David Shaw 2001-12-21 21:02:05 +00:00
parent bcad2222c7
commit ca058399b0
10 changed files with 106 additions and 42 deletions

View file

@ -78,6 +78,7 @@ enum cmd_and_opt_values { aNull = 0,
aSignSym,
aSignKey,
aLSignKey,
aNRSignKey,
aListPackets,
aEditKey,
aDeleteKey,
@ -278,6 +279,7 @@ static ARGPARSE_OPTS opts[] = {
N_("remove key from the secret keyring")},
{ aSignKey, "sign-key" ,256, N_("sign a key")},
{ aLSignKey, "lsign-key" ,256, N_("sign a key locally")},
{ aNRSignKey, "nrsign-key" ,256, N_("sign a key non-revocably")},
{ aEditKey, "edit-key" ,256, N_("sign or edit a key")},
{ aGenRevoke, "gen-revoke",256, N_("generate a revocation certificate")},
{ aExport, "export" , 256, N_("export keys") },
@ -889,6 +891,7 @@ main( int argc, char **argv )
case aKeygen: set_cmd( &cmd, aKeygen); greeting=1; break;
case aSignKey: set_cmd( &cmd, aSignKey); break;
case aLSignKey: set_cmd( &cmd, aLSignKey); break;
case aNRSignKey: set_cmd( &cmd, aNRSignKey); break;
case aStore: set_cmd( &cmd, aStore); break;
case aEditKey: set_cmd( &cmd, aEditKey); greeting=1; break;
case aClearsign: set_cmd( &cmd, aClearsign); break;
@ -1580,6 +1583,14 @@ main( int argc, char **argv )
m_free(username);
break;
case aNRSignKey:
if( argc != 1 )
wrong_args(_("--nrsign-key user-id"));
username = make_username( fname );
keyedit_menu(fname, locusr, NULL, 3 );
m_free(username);
break;
case aEditKey: /* Edit a key signature */
if( !argc )
wrong_args(_("--edit-key user-id [commands]"));