Neji
Neji

Reputation: 198

Php - cUrl support TLSv1 connection

My payment gataway will change the connection protocol using TLS 1.0 or higher.

I have php 5.5 with library CUrl 7.19.7 (NSS/3.16.2.3 Basic ECC), that supports only CURL_SSLVERSION_TLSv1 (according with this link http://curl.haxx.se/libcurl/c/symbols-in-versions.html).

Should be fine too?. What is the difference between set CURL_SSLVERSION_TLSv1 or CURL_SSLVERSION_TLSv1_0.

Thank you very much, for your time

Upvotes: 0

Views: 3720

Answers (1)

Steffen Ullrich
Steffen Ullrich

Reputation: 123280

  • TLSv1: use TLS 1.x, i.e. TLS 1.0, TLS 1.1, TLS 1.2. These might not be all available depending on the underlying implementation.
  • TLSv1_0: use only TLS 1.0, i.e. no TLS 1.1, TLS 1.2 even if the implementation would support this.

If your implementation supports at most TLS 1.0 then both options should have the same effect.

BTW, the very first hit with google when searching for "CURL_SSLVERSION_TLSv1_0 CURL_SSLVERSION_TLSv1" is http://curl.haxx.se/libcurl/c/CURLOPT_SSLVERSION.html which documents these options as:

  • CURL_SSLVERSION_TLSv1: TLS 1.x
  • CURL_SSLVERSION_TLSv1_0: TLS 1.0

Upvotes: 1

Related Questions