ia64/xen-unstable
changeset 15923:da8b8fbe26c2
[VTPM] VTPM manager -- Fix parameter check
If vtpm_managed is started with the same vtpm instance, the following
error occurs.
++++++++++++
Loading NVM.
Sending LoadNVM command
INFO[VTSP]: Unbinding 256 bytes of data.
ERROR in VTSP_Unbind at vtsp.c:719 code: TPM_BAD_PARAMETER.
ERROR in envelope_decrypt at securestorage.c:156
code:TPM_BAD_PARAMETER.
ERROR[VTPM]: Failed to envelope decrypt data
.ERROR in VTPM_Handle_Load_NVM at securestorage.c:284 code:
TPM_BAD_PARAMETER.
ERROR[VTPM]: Failed to load NVM
.INFO[VTPM]: [VTPM Listener]: VTPM Listener waiting for messages.
Reading LoadNVM header
++++++++++++
Signed-off-by: Kouichi YASAKI <yasaki.kouichi@jp.fujitsu.com>
If vtpm_managed is started with the same vtpm instance, the following
error occurs.
++++++++++++
Loading NVM.
Sending LoadNVM command
INFO[VTSP]: Unbinding 256 bytes of data.
ERROR in VTSP_Unbind at vtsp.c:719 code: TPM_BAD_PARAMETER.
ERROR in envelope_decrypt at securestorage.c:156
code:TPM_BAD_PARAMETER.
ERROR[VTPM]: Failed to envelope decrypt data
.ERROR in VTPM_Handle_Load_NVM at securestorage.c:284 code:
TPM_BAD_PARAMETER.
ERROR[VTPM]: Failed to load NVM
.INFO[VTPM]: [VTPM Listener]: VTPM Listener waiting for messages.
Reading LoadNVM header
++++++++++++
Signed-off-by: Kouichi YASAKI <yasaki.kouichi@jp.fujitsu.com>
author | kfraser@localhost.localdomain |
---|---|
date | Tue Sep 18 15:06:20 2007 +0100 (2007-09-18) |
parents | 3ce70f7312d9 |
children | e1c80d6bf2cf |
files | tools/vtpm_manager/tcs/tcs.c |
line diff
1.1 --- a/tools/vtpm_manager/tcs/tcs.c Tue Sep 18 15:05:38 2007 +0100 1.2 +++ b/tools/vtpm_manager/tcs/tcs.c Tue Sep 18 15:06:20 2007 +0100 1.3 @@ -775,7 +775,7 @@ TPM_RESULT TCSP_UnBind(TCS_CONTEXT_HANDL 1.4 TDDL_UINT32 OutLength = TCPA_MAX_BUFFER_LENGTH; 1.5 1.6 // check input params 1.7 - if (inData == NULL || privAuth == NULL || outDataSize == NULL || *outData == NULL) 1.8 + if (inData == NULL || privAuth == NULL || outDataSize == NULL || outData == NULL) 1.9 return TPM_BAD_PARAMETER; 1.10 1.11 // Convert Byte Input parameter in the input byte stream InBuf