Unload the chaps system token in TPMStore.reset().

The chapsd daemon may load automatically load a system token from
/var/lib/chaps.  TPMStore assumes no other chaps tokens exist so this
token is now explicitly unloaded.

BUG=chromium:210525
TEST=Run VPNConnect.openvpn_cert_verify and check the client stderr
to verify that test tokens are always allocated slot 0.

Change-Id: I39054390552ec775899a79483ecc0709994c147b
Reviewed-on: https://chromium-review.googlesource.com/184405
Reviewed-by: Paul Stewart <pstew@chromium.org>
Tested-by: Darren Krahn <dkrahn@chromium.org>
Commit-Queue: Darren Krahn <dkrahn@chromium.org>
1 file changed