Home GnuPG

pubkey: Remove duplicated flag parsing code.
5be2345ddec4Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

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>

Details

Provenance
wernerAuthored on Oct 14 2013, 10:21 AM
Parents
rC0cd551faa775: mpicalc: Accept lowercase hex digits.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rC5be2345ddec4: pubkey: Remove duplicated flag parsing code. (authored by Werner Koch <wk@gnupg.org>).Oct 14 2013, 10:21 AM