Method: Ftpd::CmdAuth#cmd_auth
- Defined in:
- lib/ftpd/cmd_auth.rb
#cmd_auth(security_scheme) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/ftpd/cmd_auth.rb', line 7 def cmd_auth(security_scheme) ensure_tls_supported if socket.encrypted? error "AUTH already done", 503 end unless security_scheme =~ /^TLS(-C)?$/i error "Security scheme not implemented: #{security_scheme}", 504 end reply "234 AUTH #{security_scheme} OK." socket.encrypt end |