g10: Simplify semantics of get_pubkey_byname.
authorNeal H. Walfield <neal@g10code.com>
Mon, 14 Sep 2015 18:38:07 +0000 (20:38 +0200)
committerNeal H. Walfield <neal@g10code.com>
Wed, 16 Sep 2015 13:15:22 +0000 (15:15 +0200)
commit911fcca36d61afd061e9e6dc0584bb069353db89
tree8c5221c7840ad889120b6ff7ff7336b79f9ddeac
parentb4672e4d48fb1e1e4d17551c4c828763d1dfbb57
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.

--
Signed-off-by: Neal H. Walfield <neal@g10code.com>.
Currently, no caller invokes get_pubkey_byname with PK==NULL and
R_KEYBLOCK != NULL.  Thus, this change does not change any behavior.
g10/getkey.c