1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-03 22:56:33 +02:00

Fixed some bugs in the selection code

This commit is contained in:
Werner Koch 2001-02-08 20:59:58 +00:00
parent 2af87f8829
commit 4c316cb9b5
3 changed files with 19 additions and 2 deletions

View file

@ -857,8 +857,10 @@ key_byname( GETKEY_CTX *retctx, STRLIST namelist,
}
}
else {
ctx->req_algo = pk->req_algo;
ctx->req_usage = pk->req_usage;
if (pk) {
ctx->req_algo = pk->req_algo;
ctx->req_usage = pk->req_usage;
}
rc = lookup( ctx, ret_kb, 0 );
if ( !rc && pk ) {
pk_from_block ( ctx, pk, *ret_kb, NULL /* FIXME need to get the namehash*/ );