Skip Menu |

This queue is for tickets about the Net-SSLeay CPAN distribution.

Report information
The Basics
Id: 74554
Status: resolved
Priority: 0/
Queue: Net-SSLeay

People
Owner: MIKEM [...] cpan.org
Requestors: kmx [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: ASN1_UTCTIME vs. ASN1_TIME in X509_get_not(Before|After)
In SSLeay.xs there are currently functions:

ASN1_UTCTIME * X509_get_notBefore(cert)
ASN1_UTCTIME * X509_get_notAfter(cert)

which was correct in 0.9.5 and earlier; with later openssl versions it should be

ASN1_TIME * X509_get_notBefore(cert)
ASN1_TIME * X509_get_notAfter(cert)

I am not sure how to handle this - maybe some #ifdef ?
I am not sure if it matters at all as we consired in Net::SSLeay the return value as any other pointer.

Side note: ASN1_UTCTIME is able to handle only dates from 1950-2049

--
kmx
Any further thoughts on this?
Subject: Re: [rt.cpan.org #74554] ASN1_UTCTIME vs. ASN1_TIME in X509_get_not(Before|After)
Date: Mon, 06 Feb 2012 20:13:17 +0100
To: bug-Net-SSLeay [...] rt.cpan.org
From: kmx <kmx [...] volny.cz>
Show quoted text
> Any further thoughts on this? >
After a bit of archeology I have found out the the latest version using ASN1_UTCTIME was 0.9.5a. Since 0.9.6 it is ASN1_TIME. So I vote for ASN1_TIME I'll include the fix in my patch for RT#74556 -- kmx