pubkey: Support flags list in gcry_pk_genkey.
authorWerner Koch <wk@gnupg.org>
Mon, 14 Oct 2013 17:48:10 +0000 (19:48 +0200)
committerWerner Koch <wk@gnupg.org>
Mon, 14 Oct 2013 17:48:10 +0000 (19:48 +0200)
commitd3a605d7827b8a73ef844e9e5183590bd6b1389a
tree4f4beae56aeffbcabecfd57c83886f86862dd68c
parent5be2345ddec4147e535d5b039ee74f84bcacf9e4
pubkey: Support flags list in gcry_pk_genkey.

* src/cipher.h (PUBKEY_FLAG_TRANSIENT_KEY): New.
(PUBKEY_FLAG_USE_X931): New.
(PUBKEY_FLAG_USE_FIPS186): New.
(PUBKEY_FLAG_USE_FIPS186_2): New.
* cipher/pubkey-util.c (_gcry_pk_util_parse_flaglist): Rename from
parse_flags_list.  Parse new flags.
* cipher/dsa.c (dsa_generate): Support flag list.
* cipher/ecc.c (ecc_generate): Ditto.
* cipher/rsa.c (rsa_generate): Ditto.

Signed-off-by: Werner Koch <wk@gnupg.org>
cipher/dsa.c
cipher/ecc.c
cipher/pubkey-internal.h
cipher/pubkey-util.c
cipher/rsa.c
src/cipher.h