mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
common: Allow a readlimit for iobuf_esopen.
* common/iobuf.c (file_es_filter_ctx_t): Add fields use_readlimit and readlimit. (file_es_filter): Implement them. (iobuf_esopen): Add new arg readlimit. * g10/decrypt-data.c (decrypt_data): Adjust for change. * g10/import.c (import_keys_es_stream): Ditto. -- This comes handy for (length,datablob) style streams. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
aba82684fe
commit
2f0fdab8aa
4 changed files with 41 additions and 6 deletions
|
@ -475,7 +475,7 @@ decrypt_data (ctrl_t ctrl, void *procctx, PKT_encrypted *ed, DEK *dek)
|
|||
rc = get_output_file ("", 0, ed->buf, &filename, &fp);
|
||||
if (! rc)
|
||||
{
|
||||
iobuf_t output = iobuf_esopen (fp, "w", 0);
|
||||
iobuf_t output = iobuf_esopen (fp, "w", 0, 0);
|
||||
armor_filter_context_t *afx = NULL;
|
||||
|
||||
if (opt.armor)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue