summaryrefslogtreecommitdiffstats
path: root/etc/inc/crypt.inc
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2013-01-27 12:20:31 -0500
committerjim-p <jimp@pfsense.org>2013-01-27 12:20:31 -0500
commitdae707f5363fa10bae1257492579c57a0c459fdd (patch)
treee6973bc5d52fac1e588eb5a58f9c4b345cb8f5a2 /etc/inc/crypt.inc
parent0674bc42c350d9723db0888b85816326157ddd67 (diff)
downloadpfsense-dae707f5363fa10bae1257492579c57a0c459fdd.zip
pfsense-dae707f5363fa10bae1257492579c57a0c459fdd.tar.gz
Fixup paths when executing OpenSSL.
Diffstat (limited to 'etc/inc/crypt.inc')
-rw-r--r--etc/inc/crypt.inc4
1 files changed, 2 insertions, 2 deletions
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 {
OpenPOWER on IntegriCloud