CURL.SetOptionFTPSSLAuth
------------------------

Sets which SSL Authentication to use.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [CURL](component_CURL.md) | [2.5](newinversion25.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "CURL.SetOptionFTPSSLAuth"; curl; Value ) 

**MBS**( **"CURL.SetOptionFTPSSLAuth";** /\* Sets which SSL Authentication to use. \*/  
**$curl**; /\* The CURL session handle. \*/   
**$Value**) /\* Sets the SSL mode.e.g. 2 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| curl | The CURL session handle. | $curl |
| Value | Sets the SSL mode. | 2 |

### Result

Returns "OK" on success.

### Description

Sets which SSL Authentication to use.  
Pass a long using one of the values from below, to alter how libcurl issues "AUTH TLS" or "AUTH SSL" when FTP over SSL is activated (see CURLOPT\_USE\_SSL).  
  
| CURLFTPAUTH\_DEFAULT | 0 | Allow libcurl to decide. |
|---|--:|---|
| CURLFTPAUTH\_SSL | 1 | Try "AUTH SSL" first, and only if that fails try "AUTH TLS". |
| CURLFTPAUTH\_TLS | 2 | Try "AUTH TLS" first, and only if that fails try "AUTH SSL". |

See also [FTPSSLAUTH](https://curl.haxx.se/libcurl/c/CURLOPT_FTPSSLAUTH.html) option in CURL manual.

### See also

- [CURL.SetOptionFTPPort](CURLSetOptionFTPPort.md)
- [CURL.SetOptionFTPSSLCCC](CURLSetOptionFTPSSLCCC.md)
- [CURL.SetOptionFTPUseEPRT](CURLSetOptionFTPUseEPRT.md)
- [CURL.SetOptionFTPUseEPSV](CURLSetOptionFTPUseEPSV.md)
- [CURL.SetOptionFTPUsePret](CURLSetOptionFTPUsePret.md)
- [CURL.SetOptionHTTPAuth](CURLSetOptionHTTPAuth.md)
- [CURL.SetOptionMailAuth](CURLSetOptionMailAuth.md)
- [CURL.SetOptionProxyAuth](CURLSetOptionProxyAuth.md)
- [CURL.SetOptionSASLAuthZID](CURLSetOptionSASLAuthZID.md)
- [CURL.SetOptionSocks5Auth](CURLSetOptionSocks5Auth.md)

Created 18th August 2014 , last changed 18th August 2014

  
[CURL.SetOptionFTPPort](CURLSetOptionFTPPort.md) - [CURL.SetOptionFTPSSLCCC](CURLSetOptionFTPSSLCCC.md)

[HTML Version](CURLSetOptionFTPSSLAuth.shtml)