On 11/7/2012 7:20 PM, Peter Sylvester joked:
On 11/07/2012 06:52 PM, Graham Leggett wrote:
On 07 Nov 2012, at 4:50 PM, Ted Byers <r.ted.by...@gmail.com> wrote:
Why does it need to be something in openssl?
Ideally because it needs to be as secure as openssl.
I'm after an accurate time duration between two ASN1_TIME values, that
is not dependent on local conditions, or any external libraries.
try timegm in perl, or if it needs to be in C, just adopt the code
which is just a binary search using the gmtime c function.
i.e. you try to set bits to 1, convert to a textual representation
untill you find your value. You do not need to know anything
about leap years.
LOL
That is about the most insane solution to this common coding
exercise I have seen (OK, admitted, it might be useful if you
are working with a date conversion function for an unknown
date format, yet you somehow can tell by string comparison
if you are close or not, which is kind of rare for a
non-neural computer).
Good joke though
Jakob
--
Jakob Bohm, CIO, Partner, WiseMo A/S. http://www.wisemo.com
Transformervej 29, 2730 Herlev, Denmark. Direct +45 31 13 16 10
This public discussion message is non-binding and may contain errors.
WiseMo - Remote Service Management for PCs, Phones and Embedded
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List openssl-users@openssl.org
Automated List Manager majord...@openssl.org