diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2018-01-16 10:29:18 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2018-01-16 10:29:18 +0200 |
commit | ce76d4774a9e9d6b6c57d2c21f45f289eedccd56 (patch) | |
tree | fed7459fbf40e14f6297d1911c39e0daf3a43f27 /bpkg/auth.cxx | |
parent | e2d59d4a05b7624570c6398b3a6d095138d0d241 (diff) |
Use tmp directory facility for storing temporary certificates
Diffstat (limited to 'bpkg/auth.cxx')
-rw-r--r-- | bpkg/auth.cxx | 4 |
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 (); } |