Gatekeeper: Add missing user_id.

Auth tokens sent to keystore2 where missing the user id.

Test: Timeout bound keys can be authorized.
Change-Id: Ifd27d2d8c4e153d2e21460574a073516e276aae0
This commit is contained in:
Janis Danisevskis 2021-02-11 23:16:58 -08:00
parent 3e455e3ae1
commit 8e0035c0cc
1 changed files with 1 additions and 0 deletions

View File

@ -318,6 +318,7 @@ class GateKeeperProxy : public BnGateKeeperService {
authToken.timestamp.milliSeconds = betoh64(hwAuthToken->timestamp);
authToken.challenge = hwAuthToken->challenge;
authToken.userId = hwAuthToken->user_id;
authToken.authenticatorId = hwAuthToken->authenticator_id;
authToken.authenticatorType = static_cast<HardwareAuthenticatorType>(
betoh32(hwAuthToken->authenticator_type));