The afsconf_dir structure should be regarded as private to the libauth
library, which provides accessors for the commonly used parameters
within it. Rework libadmin so that it uses those accessors when looking
up key data.
Change-Id: I9a623ccadba95622894931ee25319d3bcb019136
Reviewed-on: http://gerrit.openafs.org/3608
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
afs_status_p st)
{ /* completion status */
int rc = 1;
+ struct afsconf_keys keys;
afs_status_t tst2, tst = 0;
afs_status_t serverSt = 0;
char *serverCellName = NULL;
if (confdir->cellName == NULL || *confdir->cellName == '\0') {
/* no cell set for server */
serverSt = ADMCFGSERVERNOTINCELL;
- } else if (confdir->keystr == NULL || confdir->keystr->nkeys == 0) {
+ } else if ((afsconf_GetKeys(confdir, &keys) != 0)
+ || (keys.nkeys == 0)) {
/* no server keys */
serverSt = ADMCFGSERVERNOKEYS;
} else {