Fixed cleanup of stale PKCS #11 tokens.
The exclusion list was incorrectly populated and so it was possible for
active tokens to be prematurely unloaded. Also fixed the unit tests to
catch this problem.
BUG=chromium:318900
TEST=unit
CQ-DEPEND=CL:176718, CL:176754
Change-Id: I5c144029fc96597e8b074b378ec0e40483273979
Reviewed-on: https://chromium-review.googlesource.com/176717
Reviewed-by: Darren Krahn <dkrahn@chromium.org>
Commit-Queue: Darren Krahn <dkrahn@chromium.org>
Tested-by: Darren Krahn <dkrahn@chromium.org>
3 files changed