pubkey: Remove duplicated flag parsing code.
authorWerner Koch <wk@gnupg.org>
Mon, 14 Oct 2013 08:21:53 +0000 (10:21 +0200)
committerWerner Koch <wk@gnupg.org>
Mon, 14 Oct 2013 08:21:53 +0000 (10:21 +0200)
commit5be2345ddec4147e535d5b039ee74f84bcacf9e4
treec9a76d20e87f60a12754ec3b7693ed7840576704
parent0cd551faa775ad5309a40629ae30bf86b75fca09
pubkey: Remove duplicated flag parsing code.

* cipher/pubkey-util.c (_gcry_pk_util_preparse_encval)
(_gcry_pk_util_data_to_mpi): Factor flag parsing code out to ..
(parse_flag_list): New.
* src/cipher.h (PUBKEY_FLAG_RAW_FLAG): New.
--

A minor disadvantage of that code is that invalid flags are not
anymore detected depending on the use.  According to the documentation
this is anyway the expected behavior.

Signed-off-by: Werner Koch <wk@gnupg.org>
cipher/pubkey-util.c
doc/gcrypt.texi
src/cipher.h