mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
* pkclist.c (build_pk_list): Do not allow an empty PK list in interactive
mode. * getkey.c (get_seckey_byname2): Disallow use of sign+encrypt Elgamal keys.
This commit is contained in:
parent
20d83b24ee
commit
5473ac9deb
3 changed files with 12 additions and 4 deletions
|
@ -1055,7 +1055,11 @@ get_seckey_byname2( GETKEY_CTX *retctx,
|
|||
ctx.items[0].mode = KEYDB_SEARCH_MODE_FIRST;
|
||||
rc = lookup( &ctx, &kb, 1 );
|
||||
if (!rc && sk )
|
||||
sk_from_block ( &ctx, sk, kb );
|
||||
{
|
||||
sk_from_block ( &ctx, sk, kb );
|
||||
if(sk->pubkey_algo==PUBKEY_ALGO_ELGAMAL)
|
||||
rc=G10ERR_UNU_SECKEY;
|
||||
}
|
||||
release_kbnode ( kb );
|
||||
get_seckey_end( &ctx );
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue