Home GnuPG
Diffusion GnuPG e9c337c0b94b

gpgsm: New option --input-size-hint.

Description

gpgsm: New option --input-size-hint.

* sm/gpgsm.c (oInputSizeHint): New.
(opts): Add "--input-size-hint".
(main): Set option.
* sm/server.c (option_handler): Add option "input-size-hint".
* sm/gpgsm.h (struct server_control_s): Add field input_size_hint.
* sm/encrypt.c (gpgsm_encrypt): Set the toatl file size.
* sm/decrypt.c (gpgsm_decrypt): Ditto.
* sm/sign.c (gpgsm_sign): Ditto.
* sm/verify.c (gpgsm_verify): Ditto.

This option allows to set a value for the progress output line. Note
that as of now there is no other way to set the file size.

Details

Provenance
wernerAuthored on Jun 15 2023, 12:28 PM
Parents
rGa88aeee12990: gpgsm: Fix last commit
Branches
Unknown
Tags
Unknown
Tasks
T6534: gpg's progress_filter needs to use uint64_t