tfFtpSslSetProposals

Jump to: navigation, search

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


#include <trsocket.h>


int tfFtpSslSetProposals (
ttUserFtpHandle ftpHandle,
int * propArray,
int propSize
);


Function Description

This function sets the acceptable SSL cipher suites for the specified FTP session. If this routine is called, it must be called before calling tfFtpSslEnable(). If this function is not called, the default ciphers are used.


For exportable version, the default cipher suites are:

TM_TLS_RSA_EXPORT_RC4_40_MD5
TM_TLS_RSA_EXPORT_RC2_40_MD5
TM_TLS_DHE_DSS_EPT_DES40_CBC_SHA
TM_TLS_RSA_EXPORT_DES40_CBC_SHA
TM_TLS_DHE_RSA_EPT_DES40_CBC_SHA

For non-exportable version (shippable to US market only), the following default cipher suites are using:

TM_TLS_RSA_RC4_128_SHA
TM_TLS_RSA_RC4_128_MD5
TM_TLS_RSA_AES_128_CBC_SHA
TM_TLS_DHE_DSS_AES_128_CBC_SHA
TM_TLS_RSA_3DES_EDE_CBC_SHA
TM_TLS_DHE_DSS_3DES_EDE_CBC_SHA



Parameters


Returns

  • TM_ENOERROR
    Cipher suite proposal successfully set for the FTP session.
  • TM_EINVAL
    Invalid FTP session handle.
  • TM_EPERM
    SSL is not initialized; tfUseSsl must be called first.
  • TM_EINVAL
    Invalid proposal in the input array.


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