g10: Simplify get_seckey_byname: it was never called with NAME not NULL.
authorNeal H. Walfield <neal@g10code.com>
Mon, 14 Sep 2015 19:14:00 +0000 (21:14 +0200)
committerNeal H. Walfield <neal@g10code.com>
Wed, 16 Sep 2015 13:15:23 +0000 (15:15 +0200)
commit80dbf8006ffe52e77930b0a6dca9d8caba8c3fd5
treee7f0387b8aab66310ab147bad4c288afb796caf5
parentdc69804ab0576fbc87297215d63b37a680d74d4d
g10: Simplify get_seckey_byname: it was never called with NAME not NULL.

* g10/keydb.h (get_seckey_byname): Rename from this...
(get_seckey_default): ... to this.  Drop the parameter name.  Update
users.
* g10/getkey.c (get_seckey_byname): Rename from this...
(get_seckey_default): ... to this.  Drop the parameter name.  Drop the
code which assumed that NAME is not NULL.

--
Signed-off-by: Neal H. Walfield <neal@g10code.com>.
g10/getkey.c
g10/keydb.h
g10/pkclist.c