auth: Rewrite KeyFile handling code
authorSimon Wilkinson <sxw@your-file-system.com>
Sat, 1 Jan 2011 23:41:29 +0000 (23:41 +0000)
committerDerrick Brashear <shadow@dementia.org>
Sun, 13 Feb 2011 18:39:53 +0000 (10:39 -0800)
commitadca541d70ef2e9d87b000ad570440a13e431014
tree4c2f6b6697716383f7dc8e1f3ed9c9a576ba3111
parent278798be3f4d16a27b73fa2d27df01fe704eb881
auth: Rewrite KeyFile handling code

Extend the KeyFile API so that we can support arbitrary numbers of
different key types, each with their own key version numbers and
sub types. Completely rewrite the KeyFile implementation with this
in mind, but implement all of the "old" API in terms of the new one.

Given that the existing KeyFile is modified by third party programs,
we retain that as the storage location for all afsconf_rxkad keys.
Only keys with a type of 1, or above are stored in the new extended
keyfile.

Change-Id: I903a1de938544541a1bfecedb2a039ba24bdfdbc
Reviewed-on: http://gerrit.openafs.org/3772
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
src/auth/acfg_errors.et
src/auth/cellconfig.c
src/auth/cellconfig.p.h
src/auth/internal.h
src/auth/keys.c
src/util/dirpath.hin
src/util/dirpath_nt.h
tests/auth/Makefile.in
tests/auth/keys-t.c