summaryrefslogtreecommitdiff
path: root/src/lib/internet.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-06-21 01:15:32 +0100
committerCarl Hetherington <cth@carlh.net>2015-06-21 01:15:32 +0100
commite60bb3e51bd1508b149e6b8f6608f09b5196ae26 (patch)
treea7a5b937c9ae138d4eebca8d5130d308bf9ae420 /src/lib/internet.cc
parentf07d5125a7b609320682689abe40781f096ca25e (diff)
No-op: remove all trailing whitespace.
Diffstat (limited to 'src/lib/internet.cc')
-rw-r--r--src/lib/internet.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/internet.cc b/src/lib/internet.cc
index b4395fd21..7bc818717 100644
--- a/src/lib/internet.cc
+++ b/src/lib/internet.cc
@@ -53,7 +53,7 @@ get_from_zip_url (string url, string file, function<void (boost::filesystem::pat
/* Download the ZIP file to temp_zip */
CURL* curl = curl_easy_init ();
curl_easy_setopt (curl, CURLOPT_URL, url.c_str ());
-
+
ScopedTemporary temp_zip;
FILE* f = temp_zip.open ("wb");
curl_easy_setopt (curl, CURLOPT_WRITEFUNCTION, get_from_zip_url_data);
@@ -71,17 +71,17 @@ get_from_zip_url (string url, string file, function<void (boost::filesystem::pat
}
/* Open the ZIP file and read `file' out of it */
-
+
struct zip* zip = zip_open (temp_zip.c_str(), 0, 0);
if (!zip) {
return optional<string> (_("Could not open downloaded ZIP file"));
}
-
+
struct zip_file* zip_file = zip_fopen (zip, file.c_str(), 0);
if (!zip_file) {
return optional<string> (_("Unexpected ZIP file contents"));
}
-
+
ScopedTemporary temp_cert;
f = temp_cert.open ("wb");
char buffer[4096];
@@ -93,7 +93,7 @@ get_from_zip_url (string url, string file, function<void (boost::filesystem::pat
}
}
temp_cert.close ();
-
+
load (temp_cert.file ());
return optional<string> ();
}