[2225] in Kerberos_V5_Development
Re: v4srvtab.c
daemon@ATHENA.MIT.EDU (Greg Hudson)
Fri Feb 14 16:21:18 1997
To: "Theodore Y. Ts'o" <tytso@MIT.EDU>
Cc: Greg Hudson <ghudson@MIT.EDU>, krbdev@MIT.EDU
In-Reply-To: Your message of "Fri, 14 Feb 1997 15:45:59 EST."
<9702142045.AA13049@dcl.MIT.EDU>
Date: Fri, 14 Feb 1997 16:20:37 EST
From: Greg Hudson <ghudson@MIT.EDU>
> Because read_service_key() is the officially exported function in
> the V4 API. get_service_key() was never in the original v4
> libraries; whoever implemented the fallback code renamed the
> original read_service_key() to be get_service_key(), probably in the
> name of making the code easier to understand.
I think you're mistaken in your view of the history here. If you look
at src/lib/krb/rd_svc_key.c in CNS, you'll find both
read_service_key() and get_service_key() (with read_service_key()
being a wrapper).
get_service_key() adds functionality to read_service_key() by taking
kvno as a reference parameter (so it can fill in the actual value if
*kvno is zero). It looks like get_service_key() was added in CNS,
since it's not present in the MIT Kerberos tree.