Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: src/tcs/rpc/tcstp/rpc_caps.c

Issue 3581012: Upgrade from trousers 0.3.3 to 0.3.6 and from testsuite 0.2 to 0.3. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/trousers.git
Patch Set: git cl push Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/tcs/rpc/tcstp/rpc_bind.c ('k') | src/tcs/rpc/tcstp/rpc_caps_tpm.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* 2 /*
3 * Licensed Materials - Property of IBM 3 * Licensed Materials - Property of IBM
4 * 4 *
5 * trousers - An open source TCG Software Stack 5 * trousers - An open source TCG Software Stack
6 * 6 *
7 * (C) Copyright International Business Machines Corp. 2004-2006 7 * (C) Copyright International Business Machines Corp. 2004-2006
8 * 8 *
9 */ 9 */
10 10
(...skipping 23 matching lines...) Expand all
34 TCPA_CAPABILITY_AREA capArea; 34 TCPA_CAPABILITY_AREA capArea;
35 UINT32 subCapSize; 35 UINT32 subCapSize;
36 BYTE *subCap; 36 BYTE *subCap;
37 UINT32 respSize; 37 UINT32 respSize;
38 BYTE *resp; 38 BYTE *resp;
39 TSS_RESULT result; 39 TSS_RESULT result;
40 40
41 if (getData(TCSD_PACKET_TYPE_UINT32, 0, &hContext, 0, &data->comm)) 41 if (getData(TCSD_PACKET_TYPE_UINT32, 0, &hContext, 0, &data->comm))
42 return TCSERR(TSS_E_INTERNAL_ERROR); 42 return TCSERR(TSS_E_INTERNAL_ERROR);
43 43
44 » LogDebugFn("thread %zd context %x", THREAD_ID, hContext); 44 » LogDebugFn("thread %ld context %x", THREAD_ID, hContext);
45 45
46 if (getData(TCSD_PACKET_TYPE_UINT32, 1, &capArea, 0, &data->comm)) 46 if (getData(TCSD_PACKET_TYPE_UINT32, 1, &capArea, 0, &data->comm))
47 return TCSERR(TSS_E_INTERNAL_ERROR); 47 return TCSERR(TSS_E_INTERNAL_ERROR);
48 if (getData(TCSD_PACKET_TYPE_UINT32, 2, &subCapSize, 0, &data->comm)) 48 if (getData(TCSD_PACKET_TYPE_UINT32, 2, &subCapSize, 0, &data->comm))
49 return TCSERR(TSS_E_INTERNAL_ERROR); 49 return TCSERR(TSS_E_INTERNAL_ERROR);
50 50
51 subCap = calloc(1, subCapSize); 51 subCap = calloc(1, subCapSize);
52 if (subCap == NULL) { 52 if (subCap == NULL) {
53 LogError("malloc of %u bytes failed.", subCapSize); 53 LogError("malloc of %u bytes failed.", subCapSize);
54 return TCSERR(TSS_E_OUTOFMEMORY); 54 return TCSERR(TSS_E_OUTOFMEMORY);
(...skipping 17 matching lines...) Expand all
72 free(resp); 72 free(resp);
73 return TCSERR(TSS_E_INTERNAL_ERROR); 73 return TCSERR(TSS_E_INTERNAL_ERROR);
74 } 74 }
75 free(resp); 75 free(resp);
76 } else 76 } else
77 initData(&data->comm, 0); 77 initData(&data->comm, 0);
78 78
79 data->comm.hdr.u.result = result; 79 data->comm.hdr.u.result = result;
80 return TSS_SUCCESS; 80 return TSS_SUCCESS;
81 } 81 }
OLDNEW
« no previous file with comments | « src/tcs/rpc/tcstp/rpc_bind.c ('k') | src/tcs/rpc/tcstp/rpc_caps_tpm.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698