Re: [Plugins-writers] Bug in 15901?

From: George A. Theall (theall@private)
Date: Wed Oct 19 2005 - 07:23:15 PDT


On Tue, Oct 18, 2005 at 06:05:13AM -0700, David Frechette wrote:

> 15901:
> "The SSL certificate of the remote service will expire
> within 60 days, at Oct 2 23:59:59 2005 GMT."
> 
> However, in the X509-certificate output I see:
> 
> 10863:
> <..snip..>
> Not Before: Oct 20 00:00:00 2004 GMT
> Not After : Oct 20 23:59:59 2005 GMT

Thanks for the report. One way to fix this bug is to replace the
following line in x509time_to_gtime() in ssl_cert_expiry.nasl:

  parts[2] = str_replace(string:parts[2], find:"0", replace:" ");

with:

  parts[2] = ereg_replace(string:parts[2], pattern:"^0", replace:" ");

(This is, after all, plugins-writers, right? :-) I'll commit the change
in a minute, and the new version should become available through the
plugin feed in an hour or two.

George
-- 
theall@private
_______________________________________________
Plugins-writers mailing list
Plugins-writers@private
http://mail.nessus.org/mailman/listinfo/plugins-writers



This archive was generated by hypermail 2.1.3 : Wed Oct 19 2005 - 07:23:44 PDT