Page MenuHome GnuPG

gpg: add the --delete-secret-key-stubs command
AbandonedPublic

Authored by matheusmoreira on May 8 2019, 11:53 PM.

Details

Summary
  • g10/gpg.c (cmd_and_opt_values): Add delete-secret-key-stubs command.

(opts): Add delete-secret-key-stubs argparse option.
(main): Parse and invoke the delete-secret-key-stubs command.

  • g10/main.h (delete_keys): Add the stubs_only parameter.
  • g10/delkey.c (delete_keys): Likewise.

(do_delete_key): Likewise.
(gpg_agent_delete_secret_key): Likewise.

  • g10/call-agent.h (agent_delete_key): Likewise.
  • g10/call-agent.c (agent_delete_key): Pass --stub-only to gpg agent.
  • po/pt.po: Translate delete-secret-key-stubs command description.
  • doc/gpg.texi: Document the delete-secret-key-stubs command.

The new --delete-secret-key-stubs command provides access to
the --stub-only option of the gpg agent's DELETE_KEY command.

Signed-off-by: Matheus Afonso Martins Moreira <matheus.a.m.moreira@gmail.com>

Test Plan

The --delete-secret-key-stubs command should delete key stubs and fail when invoked on any normal key.

Diff Detail

Repository
rG GnuPG
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

matheusmoreira edited the summary of this revision. (Show Details)

Add documentation.

New commands can't be introduced.