Treat PK11_ListCertsInSlot returning nullptr as no certs on slot
PK11_ListCertsInSlot can return nullptr. One of the cases is that the PKCS#11 token that is backing the slot has been removed. Treat the nullptr return value at all call sites as no certs on the slot. Rationale: This happens e.g. during browsertest shut down. Also, re-enable PlatformKeysServicePerUnavailableTokenBrowserTest which was disabled due to this. Bug: 1109635, 1059434 Test: 400 repetitions of PlatformKeysServicePerUnavailableTokenBrowserTest don't crash Change-Id: I585bd6872ca91e9c10cc9fd49265afbaf414756e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2317801Reviewed-by:Steven Bennetts <stevenjb@chromium.org> Reviewed-by:
Maksim Ivanov <emaxx@chromium.org> Reviewed-by:
Ryan Sleevi <rsleevi@chromium.org> Reviewed-by:
Matt Mueller <mattm@chromium.org> Reviewed-by:
Omar Morsi <omorsi@google.com> Commit-Queue: Pavol Marko <pmarko@chromium.org> Cr-Commit-Position: refs/heads/master@{#795842}
Showing
Please register or sign in to comment