]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-ssl-iostream: Make ssl_iostream_unref() private
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 16 Apr 2018 13:29:38 +0000 (16:29 +0300)
committerVille Savolainen <ville.savolainen@dovecot.fi>
Mon, 4 Jun 2018 09:30:57 +0000 (12:30 +0300)
src/lib-ssl-iostream/iostream-ssl-private.h
src/lib-ssl-iostream/iostream-ssl.h

index 2f6f50a1e6c39052dfaa042c5fe2cd5323201905..c0f4a3a041e43c08a30d5946aea232ad2cb84572 100644 (file)
@@ -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
index 53058532f33eed750c8c7c68d12a1ed55a669985..bee2c572ca3b644a55b75e8bf0f1a5bba61416ad 100644 (file)
@@ -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 */