diff options
Diffstat (limited to 'src/lib/encrypted_ecinema_kdm.cc')
| -rw-r--r-- | src/lib/encrypted_ecinema_kdm.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/encrypted_ecinema_kdm.cc b/src/lib/encrypted_ecinema_kdm.cc index e4e19d7fb..f0502ab31 100644 --- a/src/lib/encrypted_ecinema_kdm.cc +++ b/src/lib/encrypted_ecinema_kdm.cc @@ -22,6 +22,7 @@ #include "encrypted_ecinema_kdm.h" #include "exceptions.h" +#include "cross.h" #include <dcp/key.h> #include <dcp/certificate.h> #include <dcp/util.h> @@ -85,4 +86,13 @@ EncryptedECinemaKDM::as_xml () const return document.write_to_string ("UTF-8"); } +void +EncryptedECinemaKDM::as_xml (boost::filesystem::path path) const +{ + FILE* f = fopen_boost (path, "w"); + string const x = as_xml (); + fwrite (x.c_str(), 1, x.length(), f); + fclose (f); +} + #endif |
