2016-11-17 01:49:15 +08:00
|
|
|
.\" **************************************************************************
|
|
|
|
.\" * _ _ ____ _
|
|
|
|
.\" * Project ___| | | | _ \| |
|
|
|
|
.\" * / __| | | | |_) | |
|
|
|
|
.\" * | (__| |_| | _ <| |___
|
|
|
|
.\" * \___|\___/|_| \_\_____|
|
|
|
|
.\" *
|
2023-01-02 20:51:48 +08:00
|
|
|
.\" * Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
2016-11-17 01:49:15 +08:00
|
|
|
.\" *
|
|
|
|
.\" * This software is licensed as described in the file COPYING, which
|
|
|
|
.\" * you should have received as part of this distribution. The terms
|
2020-11-04 21:02:01 +08:00
|
|
|
.\" * are also available at https://curl.se/docs/copyright.html.
|
2016-11-17 01:49:15 +08:00
|
|
|
.\" *
|
|
|
|
.\" * You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
|
|
|
.\" * copies of the Software, and permit persons to whom the Software is
|
|
|
|
.\" * furnished to do so, under the terms of the COPYING file.
|
|
|
|
.\" *
|
|
|
|
.\" * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
.\" * KIND, either express or implied.
|
|
|
|
.\" *
|
|
|
|
.\" * SPDX-License-Identifier: curl
|
2022-05-17 17:16:50 +08:00
|
|
|
.\" *
|
2016-11-17 01:49:15 +08:00
|
|
|
.\" **************************************************************************
|
|
|
|
.\"
|
2023-04-26 14:58:35 +08:00
|
|
|
.TH CURLOPT_PROXY_KEYPASSWD 3 "16 Nov 2016" libcurl libcurl
|
2016-11-17 01:49:15 +08:00
|
|
|
.SH NAME
|
2021-09-09 04:55:58 +08:00
|
|
|
CURLOPT_PROXY_KEYPASSWD \- passphrase for the proxy private key
|
2016-11-17 01:49:15 +08:00
|
|
|
.SH SYNOPSIS
|
2021-11-26 21:20:18 +08:00
|
|
|
.nf
|
2016-11-17 01:49:15 +08:00
|
|
|
#include <curl/curl.h>
|
|
|
|
|
|
|
|
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_PROXY_KEYPASSWD, char *pwd);
|
2021-11-26 21:20:18 +08:00
|
|
|
.fi
|
2016-11-17 01:49:15 +08:00
|
|
|
.SH DESCRIPTION
|
2018-04-18 03:17:57 +08:00
|
|
|
This option is for connecting to an HTTPS proxy, not an HTTPS server.
|
2016-11-27 07:21:15 +08:00
|
|
|
|
2020-06-25 17:38:25 +08:00
|
|
|
Pass a pointer to a null-terminated string as parameter. It will be used as
|
2016-11-27 07:21:15 +08:00
|
|
|
the password required to use the \fICURLOPT_PROXY_SSLKEY(3)\fP private key.
|
2022-10-11 13:57:42 +08:00
|
|
|
You never need a pass phrase to load a certificate but you need one to load
|
2016-11-27 07:21:15 +08:00
|
|
|
your private key.
|
2016-12-21 21:48:35 +08:00
|
|
|
|
|
|
|
The application does not have to keep the string around after setting this
|
|
|
|
option.
|
2016-11-17 01:49:15 +08:00
|
|
|
.SH DEFAULT
|
|
|
|
NULL
|
|
|
|
.SH PROTOCOLS
|
2016-11-27 07:21:15 +08:00
|
|
|
Used with HTTPS proxy
|
2016-11-17 01:49:15 +08:00
|
|
|
.SH EXAMPLE
|
2017-05-31 17:56:28 +08:00
|
|
|
.nf
|
|
|
|
CURL *curl = curl_easy_init();
|
|
|
|
if(curl) {
|
2020-09-17 05:04:07 +08:00
|
|
|
curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/foo.bin");
|
2017-05-31 17:56:28 +08:00
|
|
|
curl_easy_setopt(curl, CURLOPT_PROXY, "https://proxy:443");
|
|
|
|
curl_easy_setopt(curl, CURLOPT_PROXY_KEYPASSWD, "superman");
|
|
|
|
ret = curl_easy_perform(curl);
|
|
|
|
curl_easy_cleanup(curl);
|
|
|
|
}
|
|
|
|
.fi
|
2016-11-27 07:21:15 +08:00
|
|
|
.SH AVAILABILITY
|
|
|
|
Added in 7.52.0
|
2016-11-17 01:49:15 +08:00
|
|
|
.SH RETURN VALUE
|
|
|
|
Returns CURLE_OK if TLS enabled, CURLE_UNKNOWN_OPTION if not, or
|
|
|
|
CURLE_OUT_OF_MEMORY if there was insufficient heap space.
|
|
|
|
.SH "SEE ALSO"
|
2016-11-27 07:21:15 +08:00
|
|
|
.BR CURLOPT_PROXY_SSLKEY "(3), " CURLOPT_SSH_PRIVATE_KEYFILE "(3), "
|
|
|
|
.BR CURLOPT_SSLKEY "(3), "
|