1CURLOPT_TLSAUTH_PASSWORD(3)curl_easy_setopt optionsCURLOPT_TLSAUTH_PASSWORD(3)
2
3
4
6 CURLOPT_TLSAUTH_PASSWORD - password to use for TLS authentication
7
9 #include <curl/curl.h>
10
11 CURLcode curl_easy_setopt(CURL *handle, CURLOPT_TLSAUTH_PASSWORD, char
12 *pwd);
13
15 Pass a char * as parameter, which should point to the zero terminated
16 password to use for the TLS authentication method specified with the
17 CURLOPT_TLSAUTH_TYPE(3) option. Requires that the CURLOPT_TLSAUTH_USER‐
18 NAME(3) option also be set.
19
20 The application does not have to keep the string around after setting
21 this option.
22
24 NULL
25
27 All TLS-based protocols
28
30 CURL *curl = curl_easy_init();
31 if(curl) {
32 curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
33 curl_easy_setopt(curl, CURLOPT_TLSAUTH_TYPE, "SRP");
34 curl_easy_setopt(curl, CURLOPT_TLSAUTH_USERNAME, "user");
35 curl_easy_setopt(curl, CURLOPT_TLSAUTH_PASSWORD, "secret");
36 ret = curl_easy_perform(curl);
37 curl_easy_cleanup(curl);
38 }
39
41 Added in 7.21.4
42
44 Returns CURLE_OK if the option is supported, CURLE_UNKNOWN_OPTION if
45 not, or CURLE_OUT_OF_MEMORY if there was insufficient heap space.
46
48 CURLOPT_TLSAUTH_TYPE(3), CURLOPT_TLSAUTH_USERNAME(3),
49
50
51
52libcurl 7.64.0 May 31, 2017 CURLOPT_TLSAUTH_PASSWORD(3)