From 67a9928b569e3e13b5151d829b5af71dd2a538cc Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Thu, 2 Jul 1998 22:36:50 +0000 Subject: [PATCH] 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 --- src/lib/krb5/asn.1/ChangeLog | 6 ++++++ src/lib/krb5/asn.1/asn1_encode.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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 -- 2.26.2