gweb: Add function to check for TLS support
authorMarcel Holtmann <marcel@holtmann.org>
Mon, 21 May 2012 20:29:00 +0000 (22:29 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 21 May 2012 20:29:00 +0000 (22:29 +0200)
gweb/giognutls.c
gweb/giognutls.h
gweb/gionotls.c

index f7f5faa..47ff8c4 100644 (file)
@@ -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;
index 4131317..f16c75d 100644 (file)
@@ -21,4 +21,6 @@
 
 #include <glib.h>
 
+gboolean g_io_channel_supports_tls(void);
+
 GIOChannel *g_io_channel_gnutls_new(int fd);
index 75b20a3..88db3e4 100644 (file)
 
 #include "giognutls.h"
 
+gboolean g_io_channel_supports_tls(void)
+{
+       return FALSE;
+}
+
 GIOChannel *g_io_channel_gnutls_new(int fd)
 {
        return NULL;