From 70b5d7c43a57a44dad60c2c700a263610748d8f4 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Thu, 11 Aug 2016 21:31:12 +0200 Subject: 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 --- doc/gpg.texi | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'doc') 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 -- cgit v1.2.3