gweb: Adding a function to know if TLS is supported or not
authorTomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
Tue, 22 May 2012 10:17:37 +0000 (13:17 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 22 May 2012 19:08:22 +0000 (21:08 +0200)
gweb/gweb.c
gweb/gweb.h

index 8071536..27ed634 100644 (file)
@@ -266,6 +266,11 @@ void g_web_unref(GWeb *web)
        g_free(web);
 }
 
+gboolean g_web_supports_tls(void)
+{
+       return g_io_channel_supports_tls();
+}
+
 void g_web_set_debug(GWeb *web, GWebDebugFunc func, gpointer user_data)
 {
        if (web == NULL)
index 06de0d4..104345e 100644 (file)
@@ -55,6 +55,8 @@ void g_web_unref(GWeb *web);
 
 void g_web_set_debug(GWeb *web, GWebDebugFunc func, gpointer user_data);
 
+gboolean g_web_supports_tls(void);
+
 gboolean g_web_set_proxy(GWeb *web, const char *proxy);
 
 gboolean g_web_set_address_family(GWeb *web, int family);