about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2007-03-01T13·30+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2007-03-01T13·30+0000
commitdb1973d01277278b58253676337e568d5591c01f (patch)
tree70b5c0437bd847ddd434b43317fc486a0fb29fec /src
parentb4a040e52b607e019515e9339f90a2e5c6c21ad5 (diff)
* Look for the openssl program at compile time. If not found, call
  openssl through $PATH at runtime.

Diffstat (limited to 'src')
-rw-r--r--src/libstore/local-store.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstore/local-store.cc b/src/libstore/local-store.cc
index edbe567f4900..0bf246f1e6f9 100644
--- a/src/libstore/local-store.cc
+++ b/src/libstore/local-store.cc
@@ -776,7 +776,7 @@ void LocalStore::exportPath(const Path & path, bool sign,
         args.push_back(secretKey);
         args.push_back("-in");
         args.push_back(hashFile);
-        string signature = runProgram("openssl", true, args);
+        string signature = runProgram(OPENSSL_PATH, true, args);
 
         writeString(signature, hashAndWriteSink);
         
@@ -852,7 +852,7 @@ Path LocalStore::importPath(bool requireSignature, Source & source)
             args.push_back("-pubin");
             args.push_back("-in");
             args.push_back(sigFile);
-            string hash2 = runProgram("openssl", true, args);
+            string hash2 = runProgram(OPENSSL_PATH, true, args);
 
             /* Note: runProgram() throws an exception if the signature
                is invalid. */