tfFtpSslUnsecureDataConn
Table of Contents >> Application Reference >> FTP Client API
#include <trsocket.h> |
int tfFtpSslUnsecureDataConn | (ttUserFtpHandle ftpHandle); |
Function Description
This function causes all future data connections to be insecure (i.e. not to use SSL/TLS). Specifically, this routine will issue a 'PROT C' 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