From ce8b25270b2ac7ec1dc830e657d04edeff36be4b Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Fri, 5 Apr 2024 11:14:10 +0200 Subject: agent: Make "PKDECRYPT --kem" with optional value work. * agent/command.c (cmd_pkdecrypt): Fix comparison. * agent/agent.h (enum kemids): Rename type and strip trailing comma. * agent/pkdecrypt.c (agent_hybrid_pgp_kem_decrypt): Allow building with Libgcrypt < 1.11 -- Eventually we should change the libgcrypt requirement in configure. --- agent/agent.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'agent/agent.h') diff --git a/agent/agent.h b/agent/agent.h index af040b63f..4a945102a 100644 --- a/agent/agent.h +++ b/agent/agent.h @@ -560,11 +560,11 @@ gpg_error_t agent_pkdecrypt (ctrl_t ctrl, const char *desc_text, const unsigned char *ciphertext, size_t ciphertextlen, membuf_t *outbuf, int *r_padding); -enum kemid +enum kemids { KEM_PQC_PGP, KEM_PGP, - KEM_CMS, + KEM_CMS }; gpg_error_t agent_kem_decrypt (ctrl_t ctrl, const char *desc_text, int kemid, -- cgit v1.2.3