# HG changeset patch # User nenolod # Date 1169442101 28800 # Node ID 1b06f6690022cc9d7c11d738b4151e00735c9570 # Parent 1d81ea250dce36e8a50fb528d0755472523d7f9c [svn] - ssl support (no idea why, but hey, we can!) diff -r 1d81ea250dce -r 1b06f6690022 ChangeLog --- 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 + 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 revision [1084] - labotomize the ffmpeg I/O code, making it an over-engineered VFS diff -r 1d81ea250dce -r 1b06f6690022 src/curl/curl.c --- 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 }