From 72030fb7bc7ed6244c21c4a494c70cb6fca3d60d Mon Sep 17 00:00:00 2001 From: Janis Danisevskis Date: Mon, 24 Oct 2016 14:47:00 +0100 Subject: [PATCH] Adjust for small changes in the native keystore interface Test: compiled and run on bullhead device Bug: 32020919 Change-Id: I8352b87be090ba756e3a6ea51cd691cd5594e8f7 --- gatekeeperd/gatekeeperd.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gatekeeperd/gatekeeperd.cpp b/gatekeeperd/gatekeeperd.cpp index 4d72a1a4e..86b6287c4 100644 --- a/gatekeeperd/gatekeeperd.cpp +++ b/gatekeeperd/gatekeeperd.cpp @@ -304,9 +304,9 @@ public: sp binder = sm->getService(String16("android.security.keystore")); sp service = interface_cast(binder); if (service != NULL) { - status_t ret = service->addAuthToken(*auth_token, *auth_token_length); - if (ret != ResponseCode::NO_ERROR) { - ALOGE("Falure sending auth token to KeyStore: %d", ret); + auto ret = service->addAuthToken(*auth_token, *auth_token_length); + if (!ret.isOk()) { + ALOGE("Failure sending auth token to KeyStore: %" PRId32, int32_t(ret)); } } else { ALOGE("Unable to communicate with KeyStore");