diff options
author | Justus Winter <justus@g10code.com> | 2015-11-24 18:31:14 +0100 |
---|---|---|
committer | Justus Winter <justus@g10code.com> | 2015-11-25 12:19:50 +0100 |
commit | 03bf88f32c8d203d5b3bfbbc48cc45e6c08cc187 (patch) | |
tree | 30ad5c7a7377a62ed0b3522ba88fd6f8c67f71a9 /tools/gpgtar.c | |
parent | common: Refactor the call-gpg code. (diff) | |
download | gnupg2-03bf88f32c8d203d5b3bfbbc48cc45e6c08cc187.tar.xz gnupg2-03bf88f32c8d203d5b3bfbbc48cc45e6c08cc187.zip |
common: Add stream interface to call-pgp.
* common/call-gpg.c (struct writer_thread_parms): Add field 'stream'.
(writer_thread_main): Support reading from a stream.
(start_writer): Add stream argument.
(struct reader_thread_parms): Add field 'stream'.
(reader_thread_main): Support writing to a stream.
(start_reader): Add stream argument.
(_gpg_encrypt): Add stream api.
(gpg_encrypt_blob): Adapt accordingly.
(gpg_encrypt_stream): New function.
(_gpg_decrypt): Add stream api.
(gpg_decrypt_blob): Adapt accordingly.
(gpg_decrypt_stream): New function.
* common/call-gpg.h (gpg_encrypt_stream): New prototype.
(gpg_decrypt_stream): Likewise.
Signed-off-by: Justus Winter <justus@g10code.com>
Diffstat (limited to 'tools/gpgtar.c')
0 files changed, 0 insertions, 0 deletions