commit | 1a87fdc2fa4a8e516380aba27ee33caa0ef6949e | [log] [tgz] |
---|---|---|
author | Branden Archer <brarcher@google.com> | Wed Nov 21 14:58:01 2018 -0800 |
committer | Branden Archer <brarcher@google.com> | Wed Nov 21 14:58:38 2018 -0800 |
tree | b10def293112ac4cb2d68f9db974c47aca6778fa | |
parent | 50e9c3a68472d2d0751ad0f3712c0286ce80b1ba [diff] |
Fix KeyStoreClientImpl::doesKeyExist to return correct result The KeyStoreService returns NO_ERROR if the key was found, and another response code otherwise. All of these are mapped to non-zero values. As a result, if a key's existence was queried it would always respond "true", regardless if it exists or not or if there was a permissions error. Test: Key existence can be successfully checked with the keystore_cli_v2 tool. Change-Id: Iffc2e155a61354f1fbffbece093b19e5cbc537fd