Home GnuPG
Diffusion GnuPG 911fcca36d61

g10: Simplify semantics of get_pubkey_byname.
911fcca36d61Unpublished

Unpublished Commit ยท Learn More

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

Description

g10: Simplify semantics of get_pubkey_byname.

* g10/getkey.c (get_pubkey_byname): If R_KEYBLOCK is not NULL, return
the keyblock in R_KEYBLOCK independent of whether PK is set or not.

Currently, no caller invokes get_pubkey_byname with PK==NULL and
R_KEYBLOCK != NULL. Thus, this change does not change any behavior.

  • Signed-off-by: Neal H. Walfield <neal@g10code.com>.

Details

Provenance
Neal H. Walfield <neal@g10code.com>Authored on Sep 14 2015, 8:38 PM
Parents
rGb4672e4d48fb: g10: Eliminate the redundant function get_pubkey_byname.
Branches
Unknown
Tags
Unknown

Event Timeline

Neal H. Walfield <neal@g10code.com> committed rG911fcca36d61: g10: Simplify semantics of get_pubkey_byname. (authored by Neal H. Walfield <neal@g10code.com>).Sep 16 2015, 3:15 PM