Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides
New in version: 6.0   6.1   6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3    Statistic  

CURL.SetOptionSSLVersion

Sets which version of SSL/TLS to attempt to use.

Component: CURL
Version: 2.5
Mac OS X: Yes
Windows: Yes
Server: Yes
FileMaker Cloud: Yes

MBS( "CURL.SetOptionSSLVersion"; Handle; Value )

Parameters

Parameter Description Example value
Handle The CURL session handle. $curl
Value Pass number from 0 to 3. 0

Result

Returns "OK" on success.

Description

Sets which version of SSL/TLS to attempt to use.
The available options are:
Default0The default action. This will attempt to figure out the remote SSL protocol version, i.e. either SSLv3 or TLSv1 (but not SSLv2, which became disabled by default with 7.18.1).
TLSv11Force TLSv1.x
SSLv22Force SSLv2
SSLv33Force SSLv3
TLSv1.04Force TLSv1.0
TLSv1.15Force TLSv1.1
TLSv1.26Force TLSv1.2
TLSv1.37Force TLSv1.3

Examples

SMTP via SSL without TLS:

$r = MBS( "CURL.SetOptionSSLVersion"; $curl; 3 )
$r = MBS( "CURL.SetOptionPort"; $curl; 25 )

Set to use TLSv1.2:

Set Variable [$r; MBS( "CURL.SetOptionUseSSL"; $curl; 3 ) ]
Set Variable [$r; MBS( "CURL.SetOptionSSLVersion"; $curl; 6 ) ]

See also


CURL.SetOptionSSLVerifyPeer   -   CURL.SetOptionSocks5GSSAPINec

Feedback: Report problem or ask question.




Links
MBS Realbasic tutorial videos - Förderverein St. Arnulf Nickenich