From: Theodore Tso Date: Thu, 2 Jul 1998 22:36:50 +0000 (+0000) Subject: asn1_encode.c: Make the magic Macintosh EPOCH offset be 70 years X-Git-Tag: krb5-1.1-beta1~676 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=67a9928b569e3e13b5151d829b5af71dd2a538cc;p=krb5.git asn1_encode.c: Make the magic Macintosh EPOCH offset be 70 years instead of 66 years, since CodeWarrior Pro 2 now bases everything off of 1900. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10619 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/asn.1/ChangeLog b/src/lib/krb5/asn.1/ChangeLog index de87d7766..a42ad235c 100644 --- a/src/lib/krb5/asn.1/ChangeLog +++ b/src/lib/krb5/asn.1/ChangeLog @@ -1,3 +1,9 @@ +Thu Jul 2 15:30:25 1998 Theodore Y. Ts'o + + * asn1_encode.c: Make the magic Macintosh EPOCH offset be 70 years + instead of 66 years, since CodeWarrior Pro 2 now bases + everything off of 1900. + Thu Apr 16 17:01:27 1998 Tom Yu * asn1_encode.c (asn1_encode_generaltime): Sanity check the return diff --git a/src/lib/krb5/asn.1/asn1_encode.c b/src/lib/krb5/asn.1/asn1_encode.c index 826fc94af..aa8049e37 100644 --- a/src/lib/krb5/asn.1/asn1_encode.c +++ b/src/lib/krb5/asn.1/asn1_encode.c @@ -184,7 +184,7 @@ asn1_error_code asn1_encode_ia5string(buf, len, val, retlen) } #ifdef _MACINTOSH -#define EPOCH ((66 * 365 * 24 * 60 * 60) + (17 * 24 * 60 * 60) + (getTimeZoneOffset() * 60 * 60)) +#define EPOCH ((70 * 365 * 24 * 60 * 60) + (17 * 24 * 60 * 60) + (getTimeZoneOffset() * 60 * 60)) #else #define EPOCH (0) #endif