SSL and TLS support in XBMC's FTP client (libcurl / curl) for FTPS

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
except10n Offline
Junior Member
Posts: 6
Joined: Feb 2005
Reputation: 0
Question  SSL and TLS support in XBMC's FTP client (libcurl / curl) for FTPS Post: #1
hello

i need support for ftps and since the ftp client was recently modified to use libcurl i thought i'd take a shot. the included libcurl.dll is the nonssl one. i replaced it with the dll from the win32 ssl package and made the following changes to "c:\xbmc\xbmc\filesystem\filecurl.cpp" method setcommonoptions()...

g_curlinterface.easy_setopt(m_easyhandle, curlopt_ftp_ssl, curlftpssl_try);
g_curlinterface.easy_setopt(m_easyhandle, curlopt_ftpsslauth, curlftpauth_tls);
g_curlinterface.easy_setopt(m_easyhandle, curlopt_ssl_verifypeer, 0);
g_curlinterface.easy_setopt(m_easyhandle, curlopt_ssl_verifyhost, 0);

i then tried to connect to a tls ftp site and got several unresolved errors. i added libeay32.dll and libssl32.dll since apparently the openssl libs aren't statically linked into libcurl.dll. after trying again i was presented with many other unresolved symbols asking for dll files such as mscvrt.dll, ntdll.dll, etc.
a tcpdump showed however that the auth tls command was issued so it is on the right track.

i looked around for a libcurl.dll that had openssl statically linked but couldn't find any. i was also having many problems trying to compile libcurl from source myself.

does anyone have any advice on how to get libcurl with ssl supported?

-except10n
find quote
ultrabrutal Offline
Posting Freak
Posts: 954
Joined: Feb 2005
Reputation: 0
Location: South of Heaven
Post: #2
any progress on getting ssl support into xbmc?
find quote
spiff Offline
Grumpy Bastard Developer
Posts: 12,176
Joined: Nov 2003
Reputation: 82
Post: #3
no. none of the devs have any interest

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
elupus Offline
Team-XBMC Developer
Posts: 3,764
Joined: Mar 2004
Reputation: 2
Post: #4
there is another lib that has less dependencies wich is also supported by curl, yassl. anybody that wan't this should probably have a look at building a curl with that instead.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote
Skindred Offline
Senior Member
Posts: 121
Joined: Jan 2007
Reputation: 0
Post: #5
As the Title says; Those would be really neat features for meLaugh
Maybe someone can fix those into XBMC.
Would surely make it alot more usable for me ^^
But ONLY do this if there is enough interest in it, coz it would be pointless to devote time to this, when only I can benefit from it Tongue

Keep on rockin' folks Wink
I have been following XBMC (P) ever since I softmodded my xbox as a lil' kid (aged 13) just a few days after the 4th of July 2003 (what a great time that was for XBOX Big Grin)
find quote
Skindred Offline
Senior Member
Posts: 121
Joined: Jan 2007
Reputation: 0
Post: #6
Can someone explain me a lil' more about the ftp client?
Coz maybe I'll look into it and mod it myself a bit.
(This post was last modified: 2010-03-22 12:14 by Skindred.)
find quote
realjobe Offline
Posting Freak
Posts: 948
Joined: Sep 2004
Reputation: 0
Post: #7
Hi there.

Will it be possible to rich the current FTP client solution so that the SSL required FTP connections can be accessed also?

At the moment User can add to sources.xml file
<boormark>
<name>FTP site</name>
<path>FTP://user: pass@site: port</path>
</boormark>

Dealing with SSL capable FTP sites could be given as
<boormark>
<name>Secure FTP site</name>
<path>SFTP://user: pass@site: port</path>
</boormark>
?

Possible? Certificate should be then save to somewhere? UserData folder?
Smile
find quote
elupus Offline
Team-XBMC Developer
Posts: 3,764
Joined: Mar 2004
Reputation: 2
Post: #8
actually current curl has ssl support, just not tested and may be very incomplete. i know it works for https thou.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote
realjobe Offline
Posting Freak
Posts: 948
Joined: Sep 2004
Reputation: 0
Post: #9
I have SSL FTP server running.. where Can I test?
find quote
elupus Offline
Team-XBMC Developer
Posts: 3,764
Joined: Mar 2004
Reputation: 2
Post: #10
just enter a ftps:// instead of ftp for the share.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote
Post Reply