diff options
author | Werner Koch <[email protected]> | 2016-08-11 19:31:12 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2016-08-11 19:32:55 +0000 |
commit | 70b5d7c43a57a44dad60c2c700a263610748d8f4 (patch) | |
tree | d06377f79320f6fade30f50d252a0b29c491916c /doc | |
parent | common: New function string_to_u64. (diff) | |
download | gnupg-70b5d7c43a57a44dad60c2c700a263610748d8f4.tar.gz gnupg-70b5d7c43a57a44dad60c2c700a263610748d8f4.zip |
gpg: New option --input-size-hint.
* g10/options.h: Include stdint.h.
(struct opt): Add field 'input_size_hint'.
* g10/gpg.c (oInputSizeHint): New.
(opts): Add --input-size-hint.
(main): Set opt.input_size_hint.
* g10/progress.c (write_status_progress): Use the hint.
--
This is a prerequisite to fix
GnuPG-bug-id: 2368
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/gpg.texi | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/gpg.texi b/doc/gpg.texi index 944734b3e..894d38413 100644 --- a/doc/gpg.texi +++ b/doc/gpg.texi @@ -2155,6 +2155,15 @@ works properly with such messages, there is often a desire to set a maximum file size that will be generated before processing is forced to stop by the OS limits. Defaults to 0, which means "no limit". +@item --input-size-hint @var{n} +@opindex input-size-hint +This option can be used to tell GPG the size of the input data in +bytes. @var{n} must be a positive base-10 number. This option is +only useful if the input is not taken from a file. GPG may use thos +hint to optimize its buffer allocation strategy. It is also used by +the @option{--status-fd} line ``PROGRESS'' to provide a value for +``total'' if that is not available by other means. + @item --import-options @code{parameters} @opindex import-options This is a space or comma delimited string that gives options for |