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:
Benjamin Otte
2010-12-07 16:06:38 +01:00
parent c59ba60fbe
commit 07fd29c323
7 changed files with 16 additions and 14 deletions

View File

@@ -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)