Fix GetVersion2 bugs

GetVersion2, intended to make transitioning between versions on both
TA and HALS side easier, has some serious bugs.  This has been papered
over by the fact that the Trusty KM TA didn't actually support
GetVersion2.  By default the HAL-side message version is not
specified, and on the TA side the error code isn't set.  This fixes
both, so we can enable GetVersion2 in the Trusty KM TA.

Test: VtsHalKeymasterV4_0TargetTest
Change-Id: Ic689f2a42b46e22fa90e8a6da3a08760f9bdf565
2 files changed