tfFtpSslSecureDataConn

Jump to: navigation, search

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


#include <trsocket.h>


int tfFtpSslSecureDataConn (ttUserFtpHandle ftpHandle);


Function Description

This function causes all future data connections to be secure (i.e. to use SSL/TLS). Specifically, this routine will issue a 'PROT P' command to the server.


Parameters

  • ftpHandle
    The FTP session handle.


Returns

  • TM_ENOERROR
    SSL/TLS successfully enabled on the current FTP session.
  • TM_EWOULDBLOCK
    The FTP session is non-blocking and the call did not complete.
  • TM_ENOTCONN
    The user is not currently connected to a FTP server.
  • TM_EINVAL
    Invalid FTP session handle.
  • TM_EPERM
    SSL is not initialized; tfUseSsl must be called first.
  • TM_ENOBUFS
    Not enough memory to complete the requested operation.
  • TM_EOPNOTSUPP
    SSL/TLS is not supported by the FTP server.


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