Home GnuPG

context: Make the context chain-able.

Description

context: Make the context chain-able.

* src/context.h (_gcry_ctx_alloc): Add NEXT argurment.
* src/context.c (struct gcry_context): Add NEXT field.
(_gcry_ctx_alloc): Support the NEXT field.
(_gcry_ctx_get_pointer): Allow access to the NEXT field.
(_gcry_ctx_release): Loop following NEXT.
* cipher/pubkey.c (struct pk_single_data): Remove CTX_NEXT.
(release_single_data): Remove.
(_gcry_pk_single_data_push): Call _gcry_ctx_alloc with NEXT.
(_gcry_pk_get_single_data): Use _gcry_ctx_get_pointer to
access NEXT.
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Jun 15 2023, 4:22 AM
Parents
rCc160e1a85f82: cipher:pubkey: Fix non-use of flexible array member.
Branches
Unknown
Tags
Unknown