From dae707f5363fa10bae1257492579c57a0c459fdd Mon Sep 17 00:00:00 2001 From: jim-p Date: Sun, 27 Jan 2013 12:20:31 -0500 Subject: Fixup paths when executing OpenSSL. --- etc/inc/crypt.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'etc/inc/crypt.inc') diff --git a/etc/inc/crypt.inc b/etc/inc/crypt.inc index 8515c84..36b8ea2 100644 --- a/etc/inc/crypt.inc +++ b/etc/inc/crypt.inc @@ -26,7 +26,7 @@ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - pfSense_BUILDER_BINARIES: /usr/bin/openssl + pfSense_BUILDER_BINARIES: /usr/local/bin/openssl pfSense_MODULE: crypto DISABLE_PHP_LINT_CHECKING @@ -35,7 +35,7 @@ function crypt_data($val, $pass, $opt) { $file = tempnam("/tmp", "php-encrypt"); file_put_contents("{$file}.dec", $val); - exec("/usr/bin/openssl enc {$opt} -aes-256-cbc -in {$file}.dec -out {$file}.enc -k " . escapeshellarg($pass)); + exec("/usr/local/bin/openssl enc {$opt} -aes-256-cbc -in {$file}.dec -out {$file}.enc -k " . escapeshellarg($pass)); if (file_exists("{$file}.enc")) $result = file_get_contents("{$file}.enc"); else { -- cgit v1.1