summaryrefslogtreecommitdiff
path: root/src/lib/cross.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/cross.cc')
-rw-r--r--src/lib/cross.cc19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/lib/cross.cc b/src/lib/cross.cc
index 61ec8de5e..47b97baec 100644
--- a/src/lib/cross.cc
+++ b/src/lib/cross.cc
@@ -231,3 +231,22 @@ mount_info ()
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
+
+}