summaryrefslogtreecommitdiff
path: root/gweb
diff options
context:
space:
mode:
authorTomasz Bursztyka <tomasz.bursztyka@linux.intel.com>2012-05-22 10:17:37 (GMT)
committerMarcel Holtmann <marcel@holtmann.org>2012-05-22 19:08:22 (GMT)
commit6649bd624b81a69267c7d03c9d5f95a44dbf8134 (patch)
tree178487196f830ad3e02c0f63da971c58a7f6e872 /gweb
parentaf1014a23969ba130b874dca376a6b3a2a24d0da (diff)
downloadconnman-6649bd624b81a69267c7d03c9d5f95a44dbf8134.zip
connman-6649bd624b81a69267c7d03c9d5f95a44dbf8134.tar.gz
connman-6649bd624b81a69267c7d03c9d5f95a44dbf8134.tar.bz2
gweb: Adding a function to know if TLS is supported or not
Diffstat (limited to 'gweb')
-rw-r--r--gweb/gweb.c5
-rw-r--r--gweb/gweb.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/gweb/gweb.c b/gweb/gweb.c
index 8071536..27ed634 100644
--- a/gweb/gweb.c
+++ b/gweb/gweb.c
@@ -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)
diff --git a/gweb/gweb.h b/gweb/gweb.h
index 06de0d4..104345e 100644
--- a/gweb/gweb.h
+++ b/gweb/gweb.h
@@ -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);