From: Timo Sirainen Date: Mon, 16 Apr 2018 13:29:38 +0000 (+0300) Subject: lib-ssl-iostream: Make ssl_iostream_unref() private X-Git-Tag: 2.3.2.rc1~67 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d2eaf7ac78c3b5e4b80507140e52a6fa419fefac;p=thirdparty%2Fdovecot%2Fcore.git lib-ssl-iostream: Make ssl_iostream_unref() private --- diff --git a/src/lib-ssl-iostream/iostream-ssl-private.h b/src/lib-ssl-iostream/iostream-ssl-private.h index 2f6f50a1e6..c0f4a3a041 100644 --- a/src/lib-ssl-iostream/iostream-ssl-private.h +++ b/src/lib-ssl-iostream/iostream-ssl-private.h @@ -59,4 +59,6 @@ bool ssl_iostream_settings_equals(const struct ssl_iostream_settings *set1, are left. */ void ssl_iostream_settings_drop_stream_only(struct ssl_iostream_settings *set); +void ssl_iostream_unref(struct ssl_iostream **ssl_io); + #endif diff --git a/src/lib-ssl-iostream/iostream-ssl.h b/src/lib-ssl-iostream/iostream-ssl.h index 53058532f3..bee2c572ca 100644 --- a/src/lib-ssl-iostream/iostream-ssl.h +++ b/src/lib-ssl-iostream/iostream-ssl.h @@ -64,9 +64,8 @@ int io_stream_create_ssl_server(struct ssl_iostream_context *ctx, struct istream **input, struct ostream **output, struct ssl_iostream **iostream_r, const char **error_r); -/* returned input and output streams must also be unreferenced */ -void ssl_iostream_unref(struct ssl_iostream **ssl_io); -/* shutdown SSL connection and unreference ssl iostream */ +/* Shutdown SSL connection and unreference ssl iostream. + The returned input and output streams must also be unreferenced. */ void ssl_iostream_destroy(struct ssl_iostream **ssl_io); /* If verbose logging is enabled, use the specified log prefix */