From e3867bbf84eda381cd5bb25230b6462060beed02 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Mon, 8 Dec 2008 05:23:15 +0000 Subject: Note when we cannot show the decrypted config.xml --- packages/autoconfigbackup/autoconfigbackup.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'packages') diff --git a/packages/autoconfigbackup/autoconfigbackup.php b/packages/autoconfigbackup/autoconfigbackup.php index 476e6cb7..80db5543 100644 --- a/packages/autoconfigbackup/autoconfigbackup.php +++ b/packages/autoconfigbackup/autoconfigbackup.php @@ -258,6 +258,10 @@ EOF; 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); + if(!strstr($data, "pfsense")) { + $data = "Could not decrypt. Different encryption key?"; + $input_errors[] = "Could not decrypt config.xml"; + } echo "

Hostname

"; echo ""; echo "

Revision date/time

"; -- cgit v1.2.3