Author: bh
Date: 2007-10-09 18:13:18 +0200 (Tue, 09 Oct 2007)
New Revision: 428
Modified:
trunk/openvas-libnasl/ChangeLog
trunk/openvas-libnasl/test/test_script_signing.sh
Log:
* test/test_script_signing.sh (unsigned): Update test for unsigned
scripts to match the change in nasl_grammar.y
Modified: trunk/openvas-libnasl/ChangeLog
===================================================================
--- trunk/openvas-libnasl/ChangeLog 2007-10-09 15:59:49 UTC (rev 427)
+++ trunk/openvas-libnasl/ChangeLog 2007-10-09 16:13:18 UTC (rev 428)
@@ -1,5 +1,10 @@
2007-10-09 Bernhard Herzog <[EMAIL PROTECTED]>
+ * test/test_script_signing.sh (unsigned): Update test for unsigned
+ scripts to match the change in nasl_grammar.y
+
+2007-10-09 Bernhard Herzog <[EMAIL PROTECTED]>
+
* nasl/nasl_grammar.y (init_nasl_ctx): Treat a missing signature
like a bad signature so that only nasl files with good signatures
are executed if signature checks are not disabled.
Modified: trunk/openvas-libnasl/test/test_script_signing.sh
===================================================================
--- trunk/openvas-libnasl/test/test_script_signing.sh 2007-10-09 15:59:49 UTC
(rev 427)
+++ trunk/openvas-libnasl/test/test_script_signing.sh 2007-10-09 16:13:18 UTC
(rev 428)
@@ -30,10 +30,11 @@
# a signed script
check_script $signed_file YES
-# an unsigned script
+# an unsigned script. No output is generated because the nasl
+# interpreter will not even attempt to execute the file
unsigned=temp-unsigned.nasl
cp $signed_file $unsigned
-check_script $unsigned NO
+check_script $unsigned ""
# an invalid signature. No output is generated because the nasl
# interpreter will not even attempt to execute the file
_______________________________________________
Openvas-commits mailing list
[email protected]
http://lists.wald.intevation.org/mailman/listinfo/openvas-commits