summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2021-09-09 10:37:45 +0900
committerNIIBE Yutaka <gniibe@fsij.org>2021-09-09 10:37:45 +0900
commite655f195ed7b34954290392f7b003d7a7f580d04 (patch)
tree31bef64b4b4cc48ad0d72679d1ab12196218f345
parent1486a05e7853feb87d12d4f61df6dd3ad4afe2e8 (diff)
downloadlibgcrypt-e655f195ed7b34954290392f7b003d7a7f580d04.tar.gz
cipher: Support "fixedlen" flag.
* cipher/pubkey-util.c (_gcry_pk_util_parse_flaglist): Add the support. -- Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
-rw-r--r--cipher/pubkey-util.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cipher/pubkey-util.c b/cipher/pubkey-util.c
index 17816ef9..faf5ad0e 100644
--- a/cipher/pubkey-util.c
+++ b/cipher/pubkey-util.c
@@ -147,6 +147,8 @@ _gcry_pk_util_parse_flaglist (gcry_sexp_t list,
case 8:
if (!memcmp (s, "use-x931", 8))
flags |= PUBKEY_FLAG_USE_X931;
+ else if (!memcmp (s, "fixedlen", 8))
+ flags |= PUBKEY_FLAG_FIXEDLEN;
else if (!igninvflag)
rc = GPG_ERR_INV_FLAG;
break;