ptuser/hpr: Don't check for a KeyFile
authorSimon Wilkinson <sxw@your-file-system.com>
Tue, 1 Mar 2011 14:01:46 +0000 (14:01 +0000)
committerDerrick Brashear <shadow@dementia.org>
Wed, 2 Mar 2011 03:59:35 +0000 (19:59 -0800)
commit14d30b74ee2aee3a203e5aee3f42bc6db096ef33
tree9da82e209d654fb37af4f2f2adb5dcb5ba78219b
parentc87f13ff687ffa606f4e729af6a03d6f247d42d7
ptuser/hpr: Don't check for a KeyFile

ptuser and viced's hpr were checking for a KeyFile before calling
ClientAuthSecure. If a KeyFile doesn't exist, then they would display
a warning message, and use an rxnull connection.

However, ClientAuthSecure will return a rxnull connection if it can't
find a KeyFile. So, simplify all of this to just use ClientAuthSecure,
which knows better than we do what keys are usable and which aren't.

Change-Id: I14b6170ec49e0ca85bc371d3bdfa04aecf39f150
Reviewed-on: http://gerrit.openafs.org/4100
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
src/ptserver/ptuser.c
src/viced/host.c