g10: Change ask_curve so that it can be used outside.
authorNIIBE Yutaka <gniibe@fsij.org>
Wed, 28 Mar 2018 09:44:45 +0000 (18:44 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Wed, 28 Mar 2018 09:44:45 +0000 (18:44 +0900)
commite610d51f0de11154050915b951bcc5c53c940f5e
tree27cbc80baf802ac6c09b754f05aa68b0ea6e0f16
parent96918346beeca7a46de9f03f19502373994c21bc
g10: Change ask_curve so that it can be used outside.

* g10/call-agent.h (struct key_attr): New.
* g10/keygen.c (ask_curve): Return const char *.  No allocation.
(quick_generate_keypair): Follow the change.
(generate_keypair, generate_subkeypair): Likewise.
(parse_algo_usage_expire): Return const char *.

--

This change is intended for using ask_curve from card-util.c.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
g10/call-agent.h
g10/keygen.c