CURLOPT_SSLENGINE_DEFAULT.3 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. .\" generated by cd2nroff 0.1 from CURLOPT_SSLENGINE_DEFAULT.md
  2. .TH CURLOPT_SSLENGINE_DEFAULT 3 "2025-01-17" libcurl
  3. .SH NAME
  4. CURLOPT_SSLENGINE_DEFAULT \- make SSL engine default
  5. .SH SYNOPSIS
  6. .nf
  7. #include <curl/curl.h>
  8. CURLcode curl_easy_setopt(CURL *handle, CURLOPT_SSLENGINE_DEFAULT, long val);
  9. .fi
  10. .SH DESCRIPTION
  11. Pass a long set to 1 to make the already specified crypto engine the default
  12. for (asymmetric) crypto operations.
  13. This option has no effect unless set after \fICURLOPT_SSLENGINE(3)\fP.
  14. .SH DEFAULT
  15. None
  16. .SH PROTOCOLS
  17. This functionality affects all TLS based protocols: HTTPS, FTPS, IMAPS, POP3S, SMTPS etc.
  18. This option works only with the following TLS backends:
  19. OpenSSL
  20. .SH EXAMPLE
  21. .nf
  22. int main(void)
  23. {
  24. CURL *curl = curl_easy_init();
  25. if(curl) {
  26. CURLcode res;
  27. curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
  28. curl_easy_setopt(curl, CURLOPT_SSLENGINE, "dynamic");
  29. curl_easy_setopt(curl, CURLOPT_SSLENGINE_DEFAULT, 1L);
  30. res = curl_easy_perform(curl);
  31. curl_easy_cleanup(curl);
  32. }
  33. }
  34. .fi
  35. .SH AVAILABILITY
  36. Added in curl 7.9.3
  37. .SH RETURN VALUE
  38. CURLE_OK \- Engine set as default.
  39. CURLE_SSL_ENGINE_SETFAILED \- Engine could not be set as default.
  40. CURLE_NOT_BUILT_IN \- Option not built in, OpenSSL is not the SSL backend.
  41. CURLE_UNKNOWN_OPTION \- Option not recognized.
  42. CURLE_OUT_OF_MEMORY \- Insufficient heap space.
  43. .SH SEE ALSO
  44. .BR CURLOPT_SSLCERT (3),
  45. .BR CURLOPT_SSLENGINE (3)