Sha256: dd39a11d0ea9d45c573a405b6323e495250a9dd9f39424d0d246ba70b0585e78
Contents?: true
Size: 434 Bytes
Versions: 5
Compression:
Stored size: 434 Bytes
Contents
require_relative 'command_handler' module Ftpd class CmdAuth < CommandHandler def cmd_auth(security_scheme) ensure_tls_supported if socket.encrypted? error "503 AUTH already done" end unless security_scheme =~ /^TLS(-C)?$/i error "504 Security scheme not implemented: #{security_scheme}" end reply "234 AUTH #{security_scheme} OK." socket.encrypt end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
ftpd-0.16.0 | lib/ftpd/cmd_auth.rb |
ftpd-0.15.0 | lib/ftpd/cmd_auth.rb |
ftpd-0.14.0 | lib/ftpd/cmd_auth.rb |
ftpd-0.13.0 | lib/ftpd/cmd_auth.rb |
ftpd-0.12.0 | lib/ftpd/cmd_auth.rb |