diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-12-08 05:23:15 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-12-08 05:23:15 +0000 |
commit | e3867bbf84eda381cd5bb25230b6462060beed02 (patch) | |
tree | 47db04f79e0ae970b69a83d42825cd531a7f878f /packages/autoconfigbackup | |
parent | a83e51128ac2be3db2925cbc2371480689a3059b (diff) | |
download | pfsense-packages-e3867bbf84eda381cd5bb25230b6462060beed02.tar.gz pfsense-packages-e3867bbf84eda381cd5bb25230b6462060beed02.tar.bz2 pfsense-packages-e3867bbf84eda381cd5bb25230b6462060beed02.zip |
Note when we cannot show the decrypted config.xml
Diffstat (limited to 'packages/autoconfigbackup')
-rw-r--r-- | packages/autoconfigbackup/autoconfigbackup.php | 4 |
1 files changed, 4 insertions, 0 deletions
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 "<h2>Hostname</h2>"; echo "<textarea rows='1' cols='70'>{$hostname}</textarea>"; echo "<h2>Revision date/time</h2>"; |