[EMAIL PROTECTED]:

> I checked your archives, and saw the thread in Feb 2000 where this
> function was added.  [...]  I am on a UnixWare 2.0 and UnixWare 1.1.
> They do not have the timegm function available.  I have also not
> been able to find man pages for it, but I was able to write a test
> program so that I could duplicate it's functionality using mktime.
> 
> Here is the patch is attached.  [...]

The patch cannot always give accurate results because the timezone
usually depends on the time of the year (DLT or not).

That whole function (ASN1_UTCTIME_get) doesn't really make sense as it
is now: A time_t is often only a 32 bit value and is not suitable
for points of time too far in the future or in the past. Probably
ASN1_UTCTIME_get should be defined as returning a struct tm (or
something similar) instead. Similar concerns apply to ASN1_TIME_set,
ASN1_UTCTIME_set and ASN1_GENERALIZEDTIME_set, all of which take a
time_t parameter. (Only ASN1_UTCTIME_set existed in SSLeay.
UTCTime is restricted to two-digit years, but GeneralizedTime
is meant to overcome its limitations.)
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to