Track keymaster method changes
Change-Id: If0b274118a2d238b18c0a06ee3fe7f0798a44a1c
diff --git a/keystore/IKeystoreService.cpp b/keystore/IKeystoreService.cpp
index 1d9d48d..fc0b8da 100644
--- a/keystore/IKeystoreService.cpp
+++ b/keystore/IKeystoreService.cpp
@@ -76,6 +76,7 @@
ALOGE("Failed to readInplace OperationResult data");
}
}
+ outParams.readFromParcel(in);
}
void OperationResult::writeToParcel(Parcel* out) const {
@@ -92,6 +93,7 @@
ALOGE("Failed to writeInplace OperationResult data.");
}
}
+ outParams.writeToParcel(out);
}
ExportResult::ExportResult() : resultCode(0), exportData(NULL), dataLength(0) {
@@ -1066,10 +1068,9 @@
virtual void begin(const sp<IBinder>& appToken, const String16& name,
keymaster_purpose_t purpose, bool pruneable,
const KeymasterArguments& params, const uint8_t* entropy,
- size_t entropyLength, KeymasterArguments* outParams,
- OperationResult* result)
+ size_t entropyLength, OperationResult* result)
{
- if (!result || !outParams) {
+ if (!result) {
return;
}
Parcel data, reply;
@@ -1096,9 +1097,6 @@
if (reply.readInt32() != 0) {
result->readFromParcel(reply);
}
- if (reply.readInt32() != 0) {
- outParams->readFromParcel(reply);
- }
}
virtual void update(const sp<IBinder>& token, const KeymasterArguments& params,
@@ -1650,15 +1648,11 @@
const uint8_t* entropy = NULL;
size_t entropyLength = 0;
readByteArray(data, &entropy, &entropyLength);
- KeymasterArguments outArgs;
OperationResult result;
- begin(token, name, purpose, pruneable, args, entropy, entropyLength, &outArgs,
- &result);
+ begin(token, name, purpose, pruneable, args, entropy, entropyLength, &result);
reply->writeNoException();
reply->writeInt32(1);
result.writeToParcel(reply);
- reply->writeInt32(1);
- outArgs.writeToParcel(reply);
return NO_ERROR;
}