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)
MIME-Version: 1.0
Content-Type: text/html; charset="UTF-8"
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 618
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
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-17365-1328482329-1385.74554-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 30
Any further thoughts on this?
From kmx [...] volny.cz Mon Feb 6 14: 13:31 2012
MIME-Version: 1.0
X-Spam-Status: No, score=-2.433 tagged_above=-99.9 required=10 tests=[AWL=-0.533, BAYES_00=-1.9] autolearn=ham
In-Reply-To: <rt-3.8.HEAD-17365-1328482330-930.74554-6-0 [...] rt.cpan.org>
X-Spam-Flag: NO
References: <RT-Ticket-74554 [...] rt.cpan.org> <rt-3.8.HEAD-17365-1328482330-930.74554-6-0 [...] rt.cpan.org>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
Message-ID: <4F30264D.9060508 [...] volny.cz>
Content-Type: text/plain; charset=UTF-8; format=flowed
X-RT-Original-Encoding: utf-8
X-Spam-Score: -2.433
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 82D96241617 for <cpan-bug+Net-SSLeay [...] hipster.bestpractical.com>; Mon, 6 Feb 2012 14:13:31 -0500 (EST)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zyBzZG26Ht7o for <cpan-bug+Net-SSLeay [...] hipster.bestpractical.com>; Mon, 6 Feb 2012 14:13:25 -0500 (EST)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id CA7AF24007F for <bug-Net-SSLeay [...] rt.cpan.org>; Mon, 6 Feb 2012 14:13:24 -0500 (EST)
Received: (qmail 4557 invoked by uid 103); 6 Feb 2012 19:13:23 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 6 Feb 2012 19:13:23 -0000
Received: from smtp.volny.cz (HELO smtp.volny.cz) (62.44.29.27) by 16.mx.develooper.com (qpsmtpd/0.80/v0.80-19-gf52d165) with ESMTP; Mon, 06 Feb 2012 11:13:21 -0800
Received: from [127.0.0.1] (ip-213-220-214-170.net.upcbroadband.cz [213.220.214.170]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.volny.cz (Postfix) with ESMTP id 6E449C022E for <bug-Net-SSLeay [...] rt.cpan.org>; Mon, 6 Feb 2012 20:13:18 +0100 (CET)
Delivered-To: cpan-bug+Net-SSLeay [...] hipster.bestpractical.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.16) Gecko/20101125 Thunderbird/3.0.11
Subject: Re: [rt.cpan.org #74554] ASN1_UTCTIME vs. ASN1_TIME in X509_get_not(Before|After)
Return-Path: <kmx [...] volny.cz>
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: cpan-bug+Net-SSLeay [...] hipster.bestpractical.com
X-RT-Mail-Extension: net-ssleay
Date: Mon, 06 Feb 2012 20:13:17 +0100
X-Spam-Level:
To: bug-Net-SSLeay [...] rt.cpan.org
Content-Transfer-Encoding: 7bit
From: kmx <kmx [...] volny.cz>
RT-Message-ID: <rt-3.8.HEAD-17370-1328555612-1492.74554-0-0 [...] rt.cpan.org>
Content-Length: 247
Download (untitled) / with headers
text/plain 247b
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


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.