diff options
author | Werner Koch <[email protected]> | 2019-09-10 13:45:58 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2019-09-10 13:45:58 +0000 |
commit | 2f0fdab8aabdf408495163ef99b2d4d111f74692 (patch) | |
tree | 8ed0018cf23afd260baaa90df5f859033fe16bfb /g10/decrypt-data.c | |
parent | gpg: New option --use-keyboxd. (diff) | |
download | gnupg-2f0fdab8aabdf408495163ef99b2d4d111f74692.tar.gz gnupg-2f0fdab8aabdf408495163ef99b2d4d111f74692.zip |
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 <[email protected]>
Diffstat (limited to 'g10/decrypt-data.c')
-rw-r--r-- | g10/decrypt-data.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/decrypt-data.c b/g10/decrypt-data.c index c73d5fb45..5fd458845 100644 --- a/g10/decrypt-data.c +++ b/g10/decrypt-data.c @@ -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) |