auth: Rework PickClientSecObj
authorSimon Wilkinson <sxw@your-file-system.com>
Fri, 25 Feb 2011 01:30:02 +0000 (01:30 +0000)
committerDerrick Brashear <shadow@dementia.org>
Sat, 26 Feb 2011 12:01:11 +0000 (04:01 -0800)
commit9eafe7e6a8e18f63cc59b3395ae8f0d55a6c95f8
treed786fcc53095a1a8b44d7167cdb4fbf28a0ddf15
parent77c9405023f549bc8fb0c243e0b39153ac41753e
auth: Rework PickClientSecObj

When called in localauth mode, this function was using
afsconf_GetLatestKey to check that the machine has a key file. However,
the ClientAuth and ClientAuthSecure functions then go on to do exactly
the same thing.

Instead, pick up on ClientAuth returning a rxnull security layer, and
trigger the NOTFOUND error based on that, rather than on the absence of
an old-style key file.

Change-Id: Ifb2d3a98bca5d1d67e303dcfeab1bb6f1efdc570
Reviewed-on: http://gerrit.openafs.org/4053
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
src/auth/authcon.c