summaryrefslogtreecommitdiff
path: root/gweb
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2012-05-21 22:29:00 +0200
committerMarcel Holtmann <marcel@holtmann.org>2012-05-21 22:29:00 +0200
commit9158beae58efec5c267f8e1efb30b488bca090f7 (patch)
treeee046452f0bf95b42a0b410df173523335d53102 /gweb
parent78b10682561c8b657be8348a7bedcd2ed7858d84 (diff)
downloadconnman-9158beae58efec5c267f8e1efb30b488bca090f7.tar.gz
connman-9158beae58efec5c267f8e1efb30b488bca090f7.tar.bz2
connman-9158beae58efec5c267f8e1efb30b488bca090f7.zip
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 f7f5faaa..47ff8c4f 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 41313178..f16c75dc 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 75b20a34..88db3e44 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;