Author: bh
Date: 2007-07-17 15:57:49 +0200 (Tue, 17 Jul 2007)
New Revision: 268

Modified:
   trunk/openvas-plugins/ChangeLog
   trunk/openvas-plugins/scripts/ssh_func.inc
Log:
* scripts/ssh_func.inc: Adapt to incompatible change in the nasl
function rsa_sign.


Modified: trunk/openvas-plugins/ChangeLog
===================================================================
--- trunk/openvas-plugins/ChangeLog     2007-07-17 13:53:45 UTC (rev 267)
+++ trunk/openvas-plugins/ChangeLog     2007-07-17 13:57:49 UTC (rev 268)
@@ -1,3 +1,8 @@
+2007-07-17  Bernhard Herzog  <[EMAIL PROTECTED]>
+
+       * scripts/ssh_func.inc: Adapt to incompatible change in the nasl
+       function rsa_sign.
+
 2007-05-25  Jan-Oliver Wagner <[EMAIL PROTECTED]>
 
        * Makefile, configure.in: Commented out nessus-update-plugins[-gpl]

Modified: trunk/openvas-plugins/scripts/ssh_func.inc
===================================================================
--- trunk/openvas-plugins/scripts/ssh_func.inc  2007-07-17 13:53:45 UTC (rev 
267)
+++ trunk/openvas-plugins/scripts/ssh_func.inc  2007-07-17 13:57:49 UTC (rev 
268)
@@ -1539,7 +1539,10 @@
     to_hash += payload;
 
     hash = SHA1(to_hash);
-    signature = rsa_sign(e:e, n:n, d:privkey, data:hash);
+    # FIXME: rsa_sign was changed to use the private key in priv
+    # directly.  The above code to extract the parameters n, e and
+    # privkey can probably be removed.
+    signature = rsa_sign(priv:priv, passphrase:passphrase, data:hash);
     if (!signature)
     {
       set_ssh_error(msg:"Error during client's RSA signature computing");

_______________________________________________
Openvas-commits mailing list
[email protected]
http://lists.wald.intevation.org/mailman/listinfo/openvas-commits

Reply via email to