Displaying 1 result from an estimated 1 matches for "scrambler_istream_open".
Did you mean:
scrambler_istream_opened
2014 Feb 11
1
Order of istream and ostream chains
...the mail in the
reverse order. So first, the zlib should decompress it and afterwards
the scrambler should decrypt it.
But it seems, that they work the other way around. The scrambler istream
gets compressed data as input. It's hooked in the chain of istream as
the following...
static int scrambler_istream_opened(struct mail *_mail, struct istream
**stream) {
struct mail_private *mail = (struct mail_private *)_mail;
union mail_module_context *mmail = SCRAMBLER_MAIL_CONTEXT(mail);
struct istream *input, *inputs[2];
input = *stream;
*stream = scrambler_istream_create(input);...