diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-03-25 15:24:13 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-03-25 15:24:13 +0000 |
| commit | 0a62857e4412d294712cfdf227fa38ae9ef371fe (patch) | |
| tree | a5e32cdc0fc69acf6b36ef84fb6a3f525f03ac14 /src/lib/util.h | |
| parent | 68215e4e2dc313b74da7bde187917add138d3c9f (diff) | |
Add support for downloading Doremi server certificates.
Diffstat (limited to 'src/lib/util.h')
| -rw-r--r-- | src/lib/util.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/lib/util.h b/src/lib/util.h index c05680859..0bbab8305 100644 --- a/src/lib/util.h +++ b/src/lib/util.h @@ -176,6 +176,24 @@ private: char* _old; }; +class ScopedTemporary +{ +public: + ScopedTemporary (); + ~ScopedTemporary (); + + boost::filesystem::path file () const { + return _file; + } + + char const * c_str () const; + FILE* open (char const *); + void close (); + +private: + boost::filesystem::path _file; + FILE* _open; +}; #endif |
