aboutsummaryrefslogtreecommitdiff
path: root/bpkg/auth.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-01-16 10:29:18 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-01-16 10:29:18 +0200
commitce76d4774a9e9d6b6c57d2c21f45f289eedccd56 (patch)
treefed7459fbf40e14f6297d1911c39e0daf3a43f27 /bpkg/auth.cxx
parente2d59d4a05b7624570c6398b3a6d095138d0d241 (diff)
Use tmp directory facility for storing temporary certificates
Diffstat (limited to 'bpkg/auth.cxx')
-rw-r--r--bpkg/auth.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/bpkg/auth.cxx b/bpkg/auth.cxx
index 82e17ec..b60a8ee 100644
--- a/bpkg/auth.cxx
+++ b/bpkg/auth.cxx
@@ -646,10 +646,10 @@ namespace bpkg
try
{
- f = path::temp_path ("bpkg");
+ rm = tmp_file ("cert");
+ f = rm.path;
ofdstream ofs (f);
- rm = auto_rmfile (f);
ofs << *cert_pem;
ofs.close ();
}