[OpenAFS-devel] Testing: how to generate random valid KeyFile without kerberos

Simon Wilkinson simonxwilkinson@gmail.com
Mon, 17 Sep 2012 16:02:24 +0100


On 17 Sep 2012, at 15:03, Troy Benjegerdes <hozer@hozed.org> wrote:

> Would it make more sense to have afsconf_typedKey_new do a sanity
> check and at least try to log or print an error if the key has
> bad parity?

The typedKey interface has no detailed knowledge of the format of the encryp=
tion keys being stored through it. This was deliberate, so that additional e=
ncryption types and security objects can be added without having to update t=
he key management code.

Cheers,

Simon=