summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2010-01-13 11:40:17 -0500
committerChris Buechler <cmb@pfsense.org>2010-01-13 11:40:17 -0500
commit9f007e8c10978eea0ba6b50064cdec773437c974 (patch)
tree12e90d565dd1975aa8a777263ad8f0c6c6001b47
parente08e7ea126d6fd2986935ba140f7028e7ce28050 (diff)
downloadpfsense-9f007e8c10978eea0ba6b50064cdec773437c974.zip
pfsense-9f007e8c10978eea0ba6b50064cdec773437c974.tar.gz
if gzsig is missing, return error verifying signature rather than invalid signature.
-rw-r--r--etc/inc/util.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/util.inc b/etc/inc/util.inc
index d975ada..d7e1cfa 100644
--- a/etc/inc/util.inc
+++ b/etc/inc/util.inc
@@ -736,7 +736,7 @@ function verify_digital_signature($fname) {
global $g;
if(!file_exists("/usr/local/sbin/gzsig"))
- return 1;
+ return 4;
return mwexec("/usr/local/sbin/gzsig verify {$g['etc_path']}/pubkey.pem < " . escapeshellarg($fname));
}
OpenPOWER on IntegriCloud