mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
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. GnuPG-bug-id: 6534
This commit is contained in:
parent
a88aeee129
commit
e9c337c0b9
8 changed files with 33 additions and 0 deletions
|
@ -298,6 +298,10 @@ option_handler (assuan_context_t ctx, const char *key, const char *value)
|
|||
opt.request_origin = i;
|
||||
}
|
||||
}
|
||||
else if (!strcmp (key, "input-size-hint"))
|
||||
{
|
||||
ctrl->input_size_hint = string_to_u64 (value);
|
||||
}
|
||||
else
|
||||
err = gpg_error (GPG_ERR_UNKNOWN_OPTION);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue