Add KmVersion to KeymasterContext
Test: VtsHalKeymasterV4_0TargetTest
Change-Id: Iac0298dbc82a1abe004a1d24b033842c5c1898fc
diff --git a/ng/AndroidKeymaster3Device.cpp b/ng/AndroidKeymaster3Device.cpp
index b621ba8..3357017 100644
--- a/ng/AndroidKeymaster3Device.cpp
+++ b/ng/AndroidKeymaster3Device.cpp
@@ -500,7 +500,7 @@
IKeymasterDevice* CreateKeymasterDevice(keymaster2_device_t* km2_device) {
if (ConfigureDevice(km2_device) != KM_ERROR_OK) return nullptr;
- auto context = new Keymaster2PassthroughContext(km2_device);
+ auto context = new Keymaster2PassthroughContext(KmVersion::KEYMASTER_3, km2_device);
context->SetSystemVersion(GetOsVersion(), GetOsPatchlevel());
return new AndroidKeymaster3Device(context, KeymasterHardwareProfile::KM2);
}