mirror of
https://github.com/yuzu-emu/breakpad.git
synced 2024-11-24 08:15:41 +01:00
Allow passing certificate path to HTTPUpload::SendRequest
R=nealsid at http://breakpad.appspot.com/121002/show git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@640 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
parent
2543651766
commit
7cdcc98395
@ -62,6 +62,7 @@ bool HTTPUpload::SendRequest(const string &url,
|
||||
const string &file_part_name,
|
||||
const string &proxy,
|
||||
const string &proxy_user_pwd,
|
||||
const string &ca_certificate_file,
|
||||
string *response_body,
|
||||
string *error_description) {
|
||||
if (!CheckParameters(parameters))
|
||||
@ -107,6 +108,9 @@ bool HTTPUpload::SendRequest(const string &url,
|
||||
if (!proxy_user_pwd.empty())
|
||||
(*curl_easy_setopt)(curl, CURLOPT_PROXYUSERPWD, proxy_user_pwd.c_str());
|
||||
|
||||
if (!ca_certificate_file.empty())
|
||||
(*curl_easy_setopt)(curl, CURLOPT_CAINFO, ca_certificate_file.c_str());
|
||||
|
||||
struct curl_httppost *formpost = NULL;
|
||||
struct curl_httppost *lastptr = NULL;
|
||||
// Add form data.
|
||||
|
@ -61,6 +61,7 @@ class HTTPUpload {
|
||||
const string &file_part_name,
|
||||
const string &proxy,
|
||||
const string &proxy_user_pwd,
|
||||
const string &ca_certificate_file,
|
||||
string *response_body,
|
||||
string *error_description);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user