mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
fixed clearsig stuff
This commit is contained in:
parent
ccb3140ab2
commit
5aed77d1db
28 changed files with 1428 additions and 584 deletions
|
@ -532,8 +532,12 @@ get_seckey_byname( PKT_secret_key *sk, const char *name, int unprotect )
|
|||
{
|
||||
int rc;
|
||||
|
||||
rc = name ? key_byname( 1, NULL, sk, name )
|
||||
: lookup_sk( sk, 15, NULL, NULL );
|
||||
if( !name && opt.def_secret_key && *opt.def_secret_key )
|
||||
rc = key_byname( 1, NULL, sk, opt.def_secret_key );
|
||||
else if( !name ) /* use the first one as default key */
|
||||
rc = lookup_sk( sk, 15, NULL, NULL );
|
||||
else
|
||||
rc = key_byname( 1, NULL, sk, name );
|
||||
if( !rc && unprotect )
|
||||
rc = check_secret_key( sk );
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue