changeset 501:1b06f6690022 trunk

[svn] - ssl support (no idea why, but hey, we can!)
author nenolod
date Sun, 21 Jan 2007 21:01:41 -0800
parents 1d81ea250dce
children d9fe80b35381
files ChangeLog src/curl/curl.c
diffstat 2 files changed, 30 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sun Jan 21 20:51:22 2007 -0800
+++ b/ChangeLog	Sun Jan 21 21:01:41 2007 -0800
@@ -1,3 +1,12 @@
+2007-01-22 04:51:22 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
+  revision [1086]
+  - URIs are now passed naked instead of mangled by the VFS subsystem.
+  
+  trunk/src/curl/curl.c   |    4 +--
+  trunk/src/stdio/stdio.c |   53 +++++++++++++++++++++++++++++++++++++++++++++++-
+  2 files changed, 54 insertions(+), 3 deletions(-)
+
+
 2007-01-22 04:25:59 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
   revision [1084]
   - labotomize the ffmpeg I/O code, making it an over-engineered VFS 
--- a/src/curl/curl.c	Sun Jan 21 20:51:22 2007 -0800
+++ b/src/curl/curl.c	Sun Jan 21 21:01:41 2007 -0800
@@ -490,6 +490,9 @@
 
   curl_easy_setopt(handle->curl, CURLOPT_CONNECTTIMEOUT, 10);
 
+  curl_easy_setopt(handle->curl, CURLOPT_SSL_VERIFYPEER, 0);
+  curl_easy_setopt(handle->curl, CURLOPT_SSL_VERIFYHOST, 0);
+
   //add header icy-metadata:1 (when we're ready for it)
   {
     struct curl_slist *hdr = NULL;
@@ -758,15 +761,33 @@
   curl_vfs_metadata_impl
 };
 
+VFSConstructor curl_https_const = {
+  "https://",
+  curl_vfs_fopen_impl,
+  curl_vfs_fclose_impl,
+  curl_vfs_fread_impl,
+  curl_vfs_fwrite_impl,
+  curl_vfs_getc_impl,
+  curl_vfs_ungetc_impl,
+  curl_vfs_fseek_impl,
+  curl_vfs_rewind_impl,
+  curl_vfs_ftell_impl,
+  curl_vfs_feof_impl,
+  curl_vfs_truncate_impl,
+  curl_vfs_metadata_impl
+};
+
 static void init(void)
 {
   vfs_register_transport(&curl_const);
+  vfs_register_transport(&curl_https_const);
 }
 
 static void cleanup(void)
 {
 #if 0
   vfs_unregister_transport(&curl_const);
+  vfs_unregister_transport(&curl_https_const);
 #endif
 }