[898] in Kerberos_V5_Development
Re: "Two copies of DES library" change breaks K5 compat w/Cygnus K4
daemon@ATHENA.MIT.EDU (John Gilmore)
Sun Mar 19 21:13:24 1995
To: "Theodore Ts'o" <tytso@MIT.EDU>
Cc: gnu@cygnus.com, krbdev@MIT.EDU, gnu@cygnus.com
In-Reply-To: Your message of "Sun, 19 Mar 1995 18:56:37 EST."
<199503192356.SAA00395@localhost.mit.edu>
Date: Sun, 19 Mar 1995 18:13:12 -0800
From: John Gilmore <gnu@cygnus.com>
> The whole point of des425.a is to avoid including two
> copies of the DES library.
Exactly. Premature optimization -- the root of all evil.
> I'd suggest the short-term fix of grabbing the Cygnus gettime of day
> function, and dropping it into des425.a, instead of reverting the
> change, though.
> Which function is it that's missing from
> des425.a, that the Cygnus krb.a needs?
It's called unix_time_gmt_unixsec, which is the Unix version of
a function that returns time, in zone GMT, in the Unix epoch, in seconds.
This is a heavily configured part of the tree, because it involves
very OS-specific stuff. (On Windows, we read the hardware clock,
because Windows's time drifts too much!)
I *don't* recommend adding that to your lib425. What I recommend is
not trying to break an interface in half and substitute for half of it.
If you bring in any piece of krb4, bring the whole thing in. Saving
40K (or 400K) when built for V4-compatability is simply not a big deal.
Human time is what this project is really short on. Disk space and RAM
we have gobs of. Let's stop wasting our time on this.
John