From: Mark Eichin Date: Sat, 2 Jul 1994 00:33:02 +0000 (+0000) Subject: revert portability change temporarily X-Git-Tag: krb5-1.0-beta4.2~167 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=530857db933a75cf820a239e164542aaf4fad02a;p=krb5.git revert portability change temporarily git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3943 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/asn.1/asn1_decode.c b/src/lib/krb5/asn.1/asn1_decode.c index 9412043f6..c9036538e 100644 --- a/src/lib/krb5/asn.1/asn1_decode.c +++ b/src/lib/krb5/asn.1/asn1_decode.c @@ -1,3 +1,4 @@ +#include /* ASN.1 primitive decoders */ #include "asn1_decode.h" #include "asn1_get.h" @@ -176,6 +177,7 @@ asn1_error_code asn1_decode_generaltime(DECLARG(asn1buf *, buf), t = mktime(&ts); if(t == -1) return ASN1_BAD_TIMEFORMAT; +#define HAVE_GMTOFF #ifdef HAVE_GMTOFF t += ts.tm_gmtoff; /* Convert back to UTC timezone */ #else @@ -190,6 +192,11 @@ asn1_error_code asn1_decode_generaltime(DECLARG(asn1buf *, buf), delta = (zl.tm_sec + 60*(zl.tm_min+60*(zl.tm_hour + 24*zl.tm_yday))) - (zg.tm_sec + 60*(zg.tm_min+60*(zg.tm_hour + 24*zg.tm_yday))); + if (ts.tm_isdst > 0) { + delta += 60*60; + } + +fprintf(stderr, "ASN1 DECODE: delta = %d\n", delta); t += delta; } #endif