[1101] in Kerberos_V5_Development
Re: Proposal for API change: krb5_init_random_key
daemon@ATHENA.MIT.EDU (Barry Jaspan)
Fri May 3 17:46:01 1996
Date: Fri, 3 May 1996 17:45:50 -0400
From: "Barry Jaspan" <bjaspan@MIT.EDU>
To: basch@lehman.com
Cc: krbdev@MIT.EDU
In-Reply-To: <199605022145.RAA08396@badger.lehman.com> (basch@lehman.com)
Richard,
I agree with the problem and your proposal 1 solution. I have an
additional suggestion, however. krb5_init_random_key is somewhat
misnamed, because it does not actually initialize a random key---it
initializes a random key generator. Therefore, I suggest that we
rename the function that takes a krb5_data to
krb5_init_random_key_gen. For compatibility, you can then change
krb5_init_random_key to a very short and simple function that conses
up a krb5_data from the krb5_keyblock and calls init_random_key_gen
for compatibility. The API doc (there *will* be in API doc, right?)
can document that krb5_init_random_key is obsolete, and we can remove
all of our own references to it.
This has the undesireable consequence of creating another function in
the library, whereas generally it is my purpose in life to rip as much
code out of Kerberos as I possibly can, but such is life.
Barry