Add -usetokens option to libadmin test 'afscp'
authorThomas L. Kula <kula@tproa.net>
Sun, 6 Feb 2011 01:11:56 +0000 (20:11 -0500)
committerDerrick Brashear <shadow@dementia.org>
Wed, 27 Apr 2011 18:06:23 +0000 (11:06 -0700)
commit4aff5a87c2ff2dcff20eaed9bc58c9c8b5edad70
treed40219ee196c5a5131d3038e825577f51bd6f405
parent79d5b5cce65b10134004c4cb2b7b34ac509cba6a
Add -usetokens option to libadmin test 'afscp'

This adds a -usetokens option to poorly named libadmin test 'afscp' program.
If called with this flag, 'afscp' will assume you have already acquired
tokens, and will fetch and use them. If ran with the -authcell option,
it will look for tokens for that cell, otherwise it will look for tokens
in the local cell. Since the function used to fetch local tokens is
incompatable with the kas functions, all of the kas commands have been
modified to complain and exit if any of them all called with -usetokens.

Fixed whitespace, again.

Change-Id: I4f9bcbae42f6eb179168bb5d152ed36df3db8dd5
Reviewed-on: http://gerrit.openafs.org/3899
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Dan Hyde <drh@umich.edu>
Reviewed-by: Steve Simmons <scs@umich.edu>
Tested-by: Derrick Brashear <shadow@dementia.org>
src/libadmin/test/afscp.c
src/libadmin/test/common.h
src/libadmin/test/kas.c
src/libadmin/test/kas.h