tfFtpSslDisable

Jump to: navigation, search

Table of Contents >> Application Reference >> FTP Client API


#include <trsocket.h>


int tfFtpSslDisable (
ttUserFtpHandle ftpUserHandle,
int secureDataConn
);


Function Description

This function disables SSL/TLS for the specified FTP session. Calling this routine will cause the control connection to revert to plaintext and future data connections will not be protected.


Warning Warning: Warning: This routine utilizes the FTP CCC command to revert the control connection to plaintext. Since the CCC command is an optional command, the FTP server may not support it, in which case this command may fail.


Parameters

  • ftpUserHandle
    The FTP session handle.
  • secureDataConn
    A boolean value indicating whether future data connections should be secure (i.e. a PROT command is issued after authentication).


Returns

  • TM_ENOERROR
    Success.
  • TM_WOULDBLOCK
    This FTP session is non-blocking and the call did not complete.
  • TM_ENOTCONN
    The user is not currently connected to an FTP server.
  • TM_EINVAL
    Invalid FTP session pointer.
  • TM_EPERM
    SSL is not initialized. tfUseSsl() must be called first.
  • TM_ENOBUFS
    Not enough memory to complete the requested operation.
  • TM_ENOPROTOOPT
    SSL/TLS is not supported by the FTP server.


Table of Contents >> Application Reference >> FTP Client API