mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 07:23:41 +02:00
tls: Make g_tls_{client|server}_connection_new() return a GIOStream
The main use case for these objects is as an IO stream, so it makes sense to return them that way from the start.
This commit is contained in:
@@ -211,7 +211,7 @@ main (int argc,
|
||||
|
||||
if (tlscert)
|
||||
{
|
||||
GTlsServerConnection *tls_conn;
|
||||
GIOStream *tls_conn;
|
||||
|
||||
tls_conn = g_tls_server_connection_new (connection, tlscert, &error);
|
||||
if (!tls_conn)
|
||||
@@ -230,7 +230,7 @@ main (int argc,
|
||||
}
|
||||
|
||||
g_object_unref (connection);
|
||||
connection = G_IO_STREAM (tls_conn);
|
||||
connection = tls_conn;
|
||||
}
|
||||
|
||||
if (connection)
|
||||
|
Reference in New Issue
Block a user