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:
ted.mielczarek 2010-08-11 19:05:53 +00:00
parent 2543651766
commit 7cdcc98395
2 changed files with 5 additions and 0 deletions

View file

@ -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.

View file

@ -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);