}
static
-int o_stream_encrypt_flush(struct ostream_private *stream)
+int o_stream_encrypt_finalize(struct ostream_private *stream)
{
const char *error;
struct encrypt_ostream *estream = (struct encrypt_ostream *)stream;
struct encrypt_ostream *estream = (struct encrypt_ostream *)stream;
if (estream->ctx_sym != NULL && !estream->finalized &&
estream->ostream.ostream.stream_errno == 0)
- o_stream_encrypt_flush(&estream->ostream);
+ o_stream_encrypt_finalize(&estream->ostream);
if (close_parent) {
o_stream_close(estream->ostream.parent);
}
estream = i_new(struct encrypt_ostream, 1);
estream->ostream.sendv = o_stream_encrypt_sendv;
- estream->ostream.flush = o_stream_encrypt_flush;
estream->ostream.iostream.close = o_stream_encrypt_close;
estream->ostream.iostream.destroy = o_stream_encrypt_destroy;