17 lines
736 B
Plaintext
17 lines
736 B
Plaintext
$OpenBSD: patch-packages_ssl_ssl4pl_c,v 1.1 2012/10/01 21:16:00 edd Exp $
|
|
|
|
On linux, there is a global variable called "timezone", whereas
|
|
we have a struct member on OpenBSD.
|
|
|
|
--- packages/ssl/ssl4pl.c.orig Tue Jun 19 19:24:14 2012
|
|
+++ packages/ssl/ssl4pl.c Sat Sep 1 00:17:52 2012
|
|
@@ -463,7 +463,7 @@ unify_asn1_time(term_t term, ASN1_TIME *time)
|
|
/* mktime assumes that the time_tm contains information for localtime. Convert back to UTC: */
|
|
if ((time_t)-1 != result)
|
|
{ result += lSecondsFromUTC; /* Add in the UTC offset of the original value */
|
|
- result -= timezone; /* Adjust for localtime */
|
|
+ result -= time_tm.tm_gmtoff; /* Adjust for localtime */
|
|
} else
|
|
{ ssl_deb(2, "mktime() failed");
|
|
return FALSE;
|