[Openvas-commits] r3489 - in trunk/openvas-client: . nessus
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Wed May 27 10:40:37 CEST 2009
Author: felix
Date: 2009-05-27 10:40:37 +0200 (Wed, 27 May 2009)
New Revision: 3489
Modified:
trunk/openvas-client/ChangeLog
trunk/openvas-client/nessus/comm.c
Log:
* nessus/comm.c (comm_parse_certificate): Exclude trailing space of
public key data as sent by the server.
Modified: trunk/openvas-client/ChangeLog
===================================================================
--- trunk/openvas-client/ChangeLog 2009-05-27 08:36:47 UTC (rev 3488)
+++ trunk/openvas-client/ChangeLog 2009-05-27 08:40:37 UTC (rev 3489)
@@ -1,6 +1,15 @@
2009-05-27 Felix Wolfsteller <felix.wolfsteller at intevation.de>
+ * nessus/comm.c (comm_parse_certificate): Exclude trailing space of
+ public key data as sent by the server.
+
+2009-05-27 Felix Wolfsteller <felix.wolfsteller at intevation.de>
+
* nessus/comm.c: Reformatted, minor doc.
+
+2009-05-27 Felix Wolfsteller <felix.wolfsteller at intevation.de>
+
+ * nessus/comm.c: Reformatted, minor doc.
2009-05-20 Felix Wolfsteller <felix.wolfsteller at intevation.de>
Modified: trunk/openvas-client/nessus/comm.c
===================================================================
--- trunk/openvas-client/nessus/comm.c 2009-05-27 08:36:47 UTC (rev 3488)
+++ trunk/openvas-client/nessus/comm.c 2009-05-27 08:40:37 UTC (rev 3489)
@@ -1761,6 +1761,10 @@
fpr_short = fpr + (strlen(fpr)-16) ;
}
+ // Public key field might contain a space before the actual data, skip it.
+ while (pubkey[0] == ' ')
+ pubkey++;
+
// Create certificate
openvas_certificate* cert = openvas_certificate_new ( estrdup(fpr),
estrdup(name),
More information about the Openvas-commits
mailing list