diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-02-17 19:25:33 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-02-17 19:25:33 +0000 |
| commit | 4228cb5b5323e9dc4bc87182b27427e48bb59d91 (patch) | |
| tree | 42b0222c333c7bb27f7ae68196837d9dbfa6b65a /src/lib/config.h | |
| parent | 4f19455332f1f4cc4c313338b7fb0b6fc508d5b4 (diff) | |
Use a separate file (in a configurable location) to store cinema / screen certificates (#796).
Diffstat (limited to 'src/lib/config.h')
| -rw-r--r-- | src/lib/config.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/config.h b/src/lib/config.h index 806853083..109f7b603 100644 --- a/src/lib/config.h +++ b/src/lib/config.h @@ -249,6 +249,10 @@ public: return _dkdms; } + boost::filesystem::path cinemas_file () const { + return _cinemas_file; + } + /** @param n New number of local encoding threads */ void set_num_local_encoding_threads (int n) { maybe_set (_num_local_encoding_threads, n); @@ -443,6 +447,8 @@ public: changed (); } + void set_cinemas_file (boost::filesystem::path file); + void clear_history () { _history.clear (); changed (); @@ -466,6 +472,9 @@ private: void read (); void set_defaults (); void set_kdm_email_to_default (); + void write_config_xml () const; + void write_cinemas_xml () const; + void read_cinemas (cxml::Document const & f); boost::shared_ptr<dcp::CertificateChain> create_certificate_chain (); template <class T> @@ -543,6 +552,7 @@ private: #endif std::vector<boost::filesystem::path> _history; std::vector<dcp::EncryptedKDM> _dkdms; + boost::filesystem::path _cinemas_file; /** Singleton instance, or 0 */ static Config* _instance; |
