View previous topic :: View next topic |
Author |
Message |
Figga Voice
Joined: 30 Aug 2005 Posts: 6
|
Posted: Wed Sep 21, 2005 5:13 am Post subject: TLS and TCL |
|
|
Hi , nice forum by the way i have found some usefull information from here that has helped alot in my learning of tcl and eggdrops..
i recently started a script that logs into ftp sites to check for certain files in this case `*-missing` files...
Basically it took a list from a file delimited by full Colons ":" and split the list into IP:PORT:USER:PASS:DIRECTORY ....
This all worked fine with normal ftp's untill i tried to do it with SSL enabled FTPD's , i have googled and yahoo'd all sorts of questions in a quest for ideas on how to wrap the ftp_lib in tls / ssl but cannot find a way to do it and i dont know where to start wrapping the ftp:: connection into TLS , i have installed TLS 1.5 on the eggdrop / box and it works succesfully in a tclsh environment (i input "package require tls" and it returns "1.5") so i know its working ....
has anyone else ever tried to wrap FTP libs in SSL/TLS using eggdrop or is it something that annot be done ?
All help wil be greatly appreciated as its beginning to become rather annoying !!
Thanks in advance
-F |
|
Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Sat Sep 24, 2005 10:15 pm Post subject: |
|
|
you can't do that, at least not with ftp package that is provided by TclLib
the thing is that - as far as I can see from its manpage - the ftp package provides no way of specifying that its (control or data) connection has to be piped through [::tls::socket] - as opposed to http package, which does that:
Code: |
package require http
package require tls
::http::register https 443 ::tls::socket
set token [::http::geturl https://my.secure.site/]
|
_________________ connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code |
|
Back to top |
|
 |
Figga Voice
Joined: 30 Aug 2005 Posts: 6
|
Posted: Mon Sep 26, 2005 4:04 am Post subject: Okay m8 ty for looking much appreciated |
|
|
I will struggle on to try and find a solution might look at lftp to do it or something else that has native SSL FTP with it |
|
Back to top |
|
 |
|