changeset 1925:2662c3a11f9f

- Enable https:// transport
author Ralf Ertzinger <ralf@skytale.net>
date Sun, 30 Sep 2007 22:19:11 +0200
parents 725b5f3f0242
children a1ed9f7cb4cc
files src/neon/neon.c
diffstat 1 files changed, 18 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/neon/neon.c	Sun Sep 30 21:34:41 2007 +0200
+++ b/src/neon/neon.c	Sun Sep 30 22:19:11 2007 +0200
@@ -53,6 +53,23 @@
     neon_vfs_metadata_impl
 };
 
+VFSConstructor neon_https_const = {
+    "https://",
+    neon_vfs_fopen_impl,
+    neon_vfs_fclose_impl,
+    neon_vfs_fread_impl,
+    neon_vfs_fwrite_impl,
+    neon_vfs_getc_impl,
+    neon_vfs_ungetc_impl,
+    neon_vfs_fseek_impl,
+    neon_vfs_rewind_impl,
+    neon_vfs_ftell_impl,
+    neon_vfs_feof_impl,
+    neon_vfs_truncate_impl,
+    neon_vfs_fsize_impl,
+    neon_vfs_metadata_impl
+};
+
 /* bring ne_set_connect_timeout in as a weak reference, not using it
  * unless we have it available (neon 0.27) --nenolod
  */
@@ -150,6 +167,7 @@
 
     if (0 != ne_has_support(NE_FEATURE_SSL)) {
         _DEBUG("neon compiled with thread-safe SSL, enabling https:// transport");
+        vfs_register_transport(&neon_https_const);
     }
 
     _LEAVE;