diff options
author | Vivek Dasmohapatra <vivek@collabora.co.uk> | 2009-07-29 18:06:28 +0100 |
---|---|---|
committer | Vivek Dasmohapatra <vivek@collabora.co.uk> | 2009-08-04 11:58:30 +0100 |
commit | 5dd031fd5f4408e39d232e35317fdd8d3d423b8c (patch) | |
tree | 91d0dcaf14d82b94de9421716c101a76252bf64f /examples | |
parent | b9ee8409f1ecbd1c28b79754ca5b45ffdf4a5738 (diff) |
Use local wocky_tls_* instead of g_tls_* and gio instead of gnio.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/connect.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/connect.c b/examples/connect.c index efd76a7..d63474f 100644 --- a/examples/connect.c +++ b/examples/connect.c @@ -5,7 +5,7 @@ #include <glib.h> -#include <gio/gnio.h> +#include <gio/gio.h> #include <wocky/wocky-connector.h> #include <wocky/wocky-xmpp-connection.h> #include <wocky/wocky-namespaces.h> @@ -20,8 +20,8 @@ WockySaslAuth *sasl = NULL; GSocketConnection *tcp; GSocketClient *client; -GTLSConnection *ssl; -GTLSSession *ssl_session; +WockyTLSConnection *ssl; +WockyTLSSession *ssl_session; static void post_auth_open_sent_cb (GObject *source, @@ -159,8 +159,8 @@ tcp_start_tls_recv_cb (GObject *source, g_object_unref (conn); - ssl_session = g_tls_session_new (G_IO_STREAM (tcp)); - ssl = g_tls_session_handshake (ssl_session, NULL, &error); + ssl_session = wocky_tls_session_new (G_IO_STREAM (tcp)); + ssl = wocky_tls_session_handshake (ssl_session, NULL, &error); if (ssl == NULL) g_error ("connect: %s: %d, %s", g_quark_to_string (error->domain), |