REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 1.22 KB
Close
//proc/thread-self/root/opt/alt/ruby18/lib64/ruby/1.8/net/ftptls.rb
Text
Base64
=begin = $RCSfile$ -- SSL/TLS enhancement for Net::HTTP. = Info 'OpenSSL for Ruby 2' project Copyright (C) 2003 Blaz Grilc <farmer@gmx.co.uk> All rights reserved. = Licence This program is licenced under the same licence as Ruby. (See the file 'LICENCE'.) = Requirements = Version $Id: ftptls.rb 13657 2007-10-08 11:16:54Z gotoyuzo $ = Notes Tested on FreeBSD 5-CURRENT and 4-STABLE - ruby 1.6.8 (2003-01-17) [i386-freebsd5] - OpenSSL 0.9.7a Feb 19 2003 - ruby-openssl-0.2.0.p0 tested on ftp server: glftpd 1.30 =end require 'socket' require 'openssl' require 'net/ftp' module Net class FTPTLS < FTP def connect(host, port=FTP_PORT) @hostname = host super end def login(user = "anonymous", passwd = nil, acct = nil) store = OpenSSL::X509::Store.new store.set_default_paths ctx = OpenSSL::SSL::SSLContext.new('SSLv23') ctx.cert_store = store ctx.verify_mode = OpenSSL::SSL::VERIFY_PEER ctx.key = nil ctx.cert = nil voidcmd("AUTH TLS") @sock = OpenSSL::SSL::SSLSocket.new(@sock, ctx) @sock.connect @sock.post_connection_check(@hostname) super(user, passwd, acct) voidcmd("PBSZ 0") end end end
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 10
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
ftp.rb
21.56 KB
lrw-r--r--
2009-11-24 07:11:41
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ftptls.rb
1.22 KB
lrw-r--r--
2007-10-08 11:16:54
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
http.rb
63.99 KB
lrw-r--r--
2010-11-22 07:22:19
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
https.rb
4.28 KB
lrw-r--r--
2008-06-06 08:05:24
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
imap.rb
99.96 KB
lrw-r--r--
2010-11-24 07:38:30
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
pop.rb
25.73 KB
lrw-r--r--
2010-11-24 07:38:32
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
protocol.rb
7.65 KB
lrw-r--r--
2007-03-19 02:39:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
smtp.rb
28.00 KB
lrw-r--r--
2010-06-08 06:14:59
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
telnet.rb
31.69 KB
lrw-r--r--
2008-05-18 15:02:36
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
telnets.rb
7.82 KB
lrw-r--r--
2007-10-08 11:16:54
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).