![]() |
![]()
| ![]() |
![]()
NAMECURLOPT_TLSAUTH_TYPE - TLS authentication methods SYNOPSIS#include <curl/curl.h> CURLcode curl_easy_setopt(CURL *handle, CURLOPT_TLSAUTH_TYPE, char *type); DESCRIPTIONPass a pointer to a null-terminated string as parameter. The string should be the method of the TLS authentication. Supported method is "SRP". Using this option multiple times makes the last set string override the previous ones. Set it to NULL to restore to internal default. The application does not have to keep the string around after setting this option.
DEFAULTblank PROTOCOLSThis functionality affects all TLS based protocols: HTTPS, FTPS, IMAPS, POP3S, SMTPS etc. This option works only with the following TLS backends: GnuTLS and OpenSSL EXAMPLEint main(void) { AVAILABILITYAdded in curl 7.21.4 RETURN VALUEcurl_easy_setopt(3) returns a CURLcode indicating success or error. CURLE_OK (0) means everything was OK, non-zero means an error occurred, see libcurl-errors(3). SEE ALSOCURLOPT_TLSAUTH_PASSWORD(3), CURLOPT_TLSAUTH_USERNAME(3)
|