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
ce0d3238f0
commit
bd545346b5
9 changed files with 35 additions and 1 deletions
|
@ -134,6 +134,7 @@ enum cmd_and_opt_values {
|
|||
oAssumeArmor,
|
||||
oAssumeBase64,
|
||||
oAssumeBinary,
|
||||
oInputSizeHint,
|
||||
|
||||
oBase64,
|
||||
oNoArmor,
|
||||
|
@ -310,6 +311,7 @@ static ARGPARSE_OPTS opts[] = {
|
|||
N_("assume input is in base-64 format")),
|
||||
ARGPARSE_s_n (oAssumeBinary, "assume-binary",
|
||||
N_("assume input is in binary format")),
|
||||
ARGPARSE_s_s (oInputSizeHint, "input-size-hint", "@"),
|
||||
|
||||
|
||||
ARGPARSE_header ("Output", N_("Options controlling the output")),
|
||||
|
@ -1148,6 +1150,10 @@ main ( int argc, char **argv)
|
|||
ctrl.is_base64 = 0;
|
||||
break;
|
||||
|
||||
case oInputSizeHint:
|
||||
ctrl.input_size_hint = string_to_u64 (pargs.r.ret_str);
|
||||
break;
|
||||
|
||||
case oDisableCRLChecks:
|
||||
opt.no_crl_check = 1;
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue