summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-07-18 13:13:20 +0100
committerCarl Hetherington <cth@carlh.net>2014-07-18 13:13:20 +0100
commite7d7fad999cba0bff770f6d4ea0775a56af388a9 (patch)
tree409ab9e2bc7cb3fe2e69ee8a5d5cad19fb8a5376 /src
parent81821868864e19809b373639b8cb78d2acc522a2 (diff)
Use tmpdir for temporary files.
Diffstat (limited to 'src')
-rw-r--r--src/certificate_chain.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/certificate_chain.cc b/src/certificate_chain.cc
index dbed590b..5d01790b 100644
--- a/src/certificate_chain.cc
+++ b/src/certificate_chain.cc
@@ -159,7 +159,7 @@ public_key_digest (boost::filesystem::path private_key, boost::filesystem::path
boost::filesystem::path
dcp::make_certificate_chain (boost::filesystem::path openssl)
{
- boost::filesystem::path directory = boost::filesystem::unique_path ();
+ boost::filesystem::path directory = boost::filesystem::temp_directory_path() / boost::filesystem::unique_path ();
boost::filesystem::create_directories (directory);
boost::filesystem::path const cwd = boost::filesystem::current_path ();