summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2013-10-14 10:21:53 +0200
committerWerner Koch <wk@gnupg.org>2013-10-14 10:21:53 +0200
commit5be2345ddec4147e535d5b039ee74f84bcacf9e4 (patch)
treec9a76d20e87f60a12754ec3b7693ed7840576704 /src
parent0cd551faa775ad5309a40629ae30bf86b75fca09 (diff)
downloadlibgcrypt-5be2345ddec4147e535d5b039ee74f84bcacf9e4.tar.gz
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>
Diffstat (limited to 'src')
-rw-r--r--src/cipher.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cipher.h b/src/cipher.h
index 3b7744a4..28f50708 100644
--- a/src/cipher.h
+++ b/src/cipher.h
@@ -31,6 +31,7 @@
#define PUBKEY_FLAG_EDDSA (1 << 2)
#define PUBKEY_FLAG_FIXEDLEN (1 << 3)
#define PUBKEY_FLAG_LEGACYRESULT (1 << 4)
+#define PUBKEY_FLAG_RAW_FLAG (1 << 5)
enum pk_operation
{