Method: Net::FTPFXPTLS#fxpprotp
- Defined in:
- lib/ftpfxp/ftpfxptls.rb
#fxpprotp ⇒ Object
This method notifies the server to start using protection mode. Must issue this command on both control connections before CPSV or SSCN when preparing secure FXP. Both servers will attempt to initiate SSL/TLS handshake regardless if it is Active or Passive mode.
128 129 130 131 132 133 134 135 136 137 138 |
# File 'lib/ftpfxp/ftpfxptls.rb', line 128 def fxpprotp synchronize do # PROT P - Private - Integrity and Privacy # PROT E - Confidential - Privacy without Integrity # PROT S - Safe - Integrity without Privacy # PROT C - Clear - Neither Integrity nor Privacy # For TLS, the data connection can only be C or P. putline('PROT P') return getresp end end |