diff options
| author | Werner Koch <[email protected]> | 2005-08-04 09:53:21 +0000 |
|---|---|---|
| committer | Werner Koch <[email protected]> | 2005-08-04 09:53:21 +0000 |
| commit | cd4c6210176ac53c73416cd87607445722678923 (patch) | |
| tree | 06aaa152629fbf8aa666b3ea8bc67cfa8994d2ad /g10/revoke.c | |
| parent | * gpgkeys_hkp.c (main), gpgkeys_curl.c (main), curl-shim.h: Show (diff) | |
| download | gnupg-cd4c6210176ac53c73416cd87607445722678923.tar.gz gnupg-cd4c6210176ac53c73416cd87607445722678923.zip | |
Fixes pertaining to revocation creation with subkey-only exported card keys
Diffstat (limited to 'g10/revoke.c')
| -rw-r--r-- | g10/revoke.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/g10/revoke.c b/g10/revoke.c index aadb1824e..f5860f409 100644 --- a/g10/revoke.c +++ b/g10/revoke.c @@ -497,11 +497,15 @@ gen_revoke( const char *uname ) log_error(_("unknown protection algorithm\n")); rc = G10ERR_PUBKEY_ALGO; break; + case -3: + tty_printf (_("Secret parts of primary key are not available.\n")); + rc = G10ERR_NO_SECKEY; + break; case 0: tty_printf(_("NOTE: This key is not protected!\n")); break; default: - rc = check_secret_key( sk, 0 ); + rc = check_secret_key( sk, 0 ); break; } if( rc ) |
