summaryrefslogtreecommitdiff
path: root/gweb
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2012-05-21 20:29:00 (GMT)
committerMarcel Holtmann <marcel@holtmann.org>2012-05-21 20:29:00 (GMT)
commit9158beae58efec5c267f8e1efb30b488bca090f7 (patch)
treeee046452f0bf95b42a0b410df173523335d53102 /gweb
parent78b10682561c8b657be8348a7bedcd2ed7858d84 (diff)
downloadconnman-9158beae58efec5c267f8e1efb30b488bca090f7.zip
connman-9158beae58efec5c267f8e1efb30b488bca090f7.tar.gz
connman-9158beae58efec5c267f8e1efb30b488bca090f7.tar.bz2
gweb: Add function to check for TLS support
Diffstat (limited to 'gweb')
-rw-r--r--gweb/giognutls.c5
-rw-r--r--gweb/giognutls.h2
-rw-r--r--gweb/gionotls.c5
3 files changed, 12 insertions, 0 deletions
diff --git a/gweb/giognutls.c b/gweb/giognutls.c
index f7f5faa..47ff8c4 100644
--- a/gweb/giognutls.c
+++ b/gweb/giognutls.c
@@ -408,6 +408,11 @@ static ssize_t g_io_gnutls_pull_func(gnutls_transport_ptr_t transport_data,
return result;
}
+gboolean g_io_channel_supports_tls(void)
+{
+ return TRUE;
+}
+
GIOChannel *g_io_channel_gnutls_new(int fd)
{
GIOGnuTLSChannel *gnutls_channel;
diff --git a/gweb/giognutls.h b/gweb/giognutls.h
index 4131317..f16c75d 100644
--- a/gweb/giognutls.h
+++ b/gweb/giognutls.h
@@ -21,4 +21,6 @@
#include <glib.h>
+gboolean g_io_channel_supports_tls(void);
+
GIOChannel *g_io_channel_gnutls_new(int fd);
diff --git a/gweb/gionotls.c b/gweb/gionotls.c
index 75b20a3..88db3e4 100644
--- a/gweb/gionotls.c
+++ b/gweb/gionotls.c
@@ -25,6 +25,11 @@
#include "giognutls.h"
+gboolean g_io_channel_supports_tls(void)
+{
+ return FALSE;
+}
+
GIOChannel *g_io_channel_gnutls_new(int fd)
{
return NULL;