diff options
author | Neal H. Walfield <neal@g10code.com> | 2015-10-19 15:04:45 +0200 |
---|---|---|
committer | Neal H. Walfield <neal@g10code.com> | 2015-10-19 20:11:03 +0200 |
commit | c37621166e9cc2a818de73bc99287a393dbb5744 (patch) | |
tree | 04ea481092fb051584d9c47d01e76af48a31fc6a /g10/gpg.c | |
parent | gpg: Improve function documentation and some comments. (diff) | |
download | gnupg2-c37621166e9cc2a818de73bc99287a393dbb5744.tar.xz gnupg2-c37621166e9cc2a818de73bc99287a393dbb5744.zip |
gpg: Fix --desig-revoke.
* g10/revoke.c (gen_desig_revoke): Add additional parameter ctrl.
Check that the secret key is available. If not, display an error
message.
--
Signed-off-by: Neal H. Walfield <neal@g10code.com>
Regression-due-to: 8459bcf9
Diffstat (limited to 'g10/gpg.c')
-rw-r--r-- | g10/gpg.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -4179,11 +4179,11 @@ main (int argc, char **argv) break; case aDesigRevoke: - if( argc != 1 ) - wrong_args("--desig-revoke user-id"); - username = make_username(*argv); - gen_desig_revoke( username, locusr ); - xfree( username ); + if (argc != 1) + wrong_args ("--desig-revoke user-id"); + username = make_username (*argv); + gen_desig_revoke (ctrl, username, locusr); + xfree (username); break; case aDeArmor: |