From 047065a1d2c151cc5eb374dca362be7b6360b493 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 7 Dec 2008 05:05:22 +0000 Subject: Add decrypted config.xml box to information page --- packages/autoconfigbackup/autoconfigbackup.php | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'packages') diff --git a/packages/autoconfigbackup/autoconfigbackup.php b/packages/autoconfigbackup/autoconfigbackup.php index 47864c7b..3534d0c8 100644 --- a/packages/autoconfigbackup/autoconfigbackup.php +++ b/packages/autoconfigbackup/autoconfigbackup.php @@ -249,14 +249,24 @@ include("head.inc"); print_input_errors($input_errors); } else { $ds = split("\+\+\+\+", $data); + $revision = $_REQUEST['download']; + $sha256sum = $ds[0]; + $data = $ds[1]; + $configtype = "Encrypted"; + if (!tagfile_deformat($data, $data, "config.xml")) + $input_errors[] = "The downloaded file does not appear to contain an encrypted pfSense configuration."; + $data = decrypt_data($data, $decrypt_password); + echo "

Hostname

"; echo ""; echo "

Revision date/time

"; - echo ""; + echo ""; echo "

SHA256 summary

"; - echo ""; + echo ""; echo "

Encrypted config.xml

"; - echo ""; + echo ""; + echo "

Decrypted config.xml

"; + echo ""; } echo ""; require("fend.inc"); -- cgit v1.2.3