Home GnuPG
Diffusion GnuPG fed3e10121a7

g10: Change the order of handling private key for encryption.
fed3e10121a7Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

g10: Change the order of handling private key for encryption.

* g10/packet.h (struct pubkey_enc_list): New.
* g10/gpgv.c (get_session_key): Supply struct pubkey_enc_list.
* g10/test-stubs.c (get_session_key): Likewise.
* g10/mainproc.c (struct kidlist_item): Remove.
(release_list): Use struct pubkey_enc_list.
(proc_pubkey_enc, print_pkenc_list): Likewise.
(proc_encrypted): Don't loop for pkenc_list, but just supply the list
to get_session_key.
* g10/pubkey-enc.c (get_session_key): Loop for secret key available,
and check pkenc_list for each secret key.
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Jun 8 2018, 9:21 AM
Parents
rG2d6f17c776cd: g10: Defer selection of decryption key at proc_encrypted.
Branches
Unknown
Tags
Unknown