return m;
}
+
+boost::filesystem::path
+openssl_path ()
+{
+#ifdef DCPOMATIC_WINDOWS
+
+ wchar_t dir[512];
+ GetModuleFileName (GetModuleHandle (0), dir, sizeof (dir));
+ PathRemoveFileSpec (dir);
+
+ boost::filesystem::path path = dir;
+ path /= "openssl.exe";
+ return path
+#else
+ /* We assume that it's on the path for Linux and OS X */
+ return "openssl";
+#endif
+
+}
extern std::string cpu_info ();
extern void run_ffprobe (boost::filesystem::path, boost::filesystem::path, boost::shared_ptr<Log>);
extern std::list<std::pair<std::string, std::string> > mount_info ();
+extern boost::filesystem::path openssl_path ();
#include "config.h"
#include "ratio.h"
#include "job.h"
+#include "cross.h"
#ifdef DCPOMATIC_WINDOWS
#include "stack.hpp"
#endif
{
boost::filesystem::path const sd = Config::instance()->signer_chain_directory ();
if (boost::filesystem::is_empty (sd)) {
- libdcp::make_signer_chain (sd);
+ libdcp::make_signer_chain (sd, openssl_path ());
}
libdcp::CertificateChain chain;