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

Side by Side Diff: src/tcs/rpc/tcstp/rpc_oper.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_migration.c ('k') | src/tcs/rpc/tcstp/rpc_own.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. 2007 7 * (C) Copyright International Business Machines Corp. 2007
8 * 8 *
9 */ 9 */
10 10
(...skipping 19 matching lines...) Expand all
30 TSS_RESULT 30 TSS_RESULT
31 tcs_wrap_SetOperatorAuth(struct tcsd_thread_data *data) 31 tcs_wrap_SetOperatorAuth(struct tcsd_thread_data *data)
32 { 32 {
33 TCS_CONTEXT_HANDLE hContext; 33 TCS_CONTEXT_HANDLE hContext;
34 TCPA_SECRET operatorAuth; 34 TCPA_SECRET operatorAuth;
35 TSS_RESULT result; 35 TSS_RESULT result;
36 36
37 if (getData(TCSD_PACKET_TYPE_UINT32, 0, &hContext, 0, &data->comm)) 37 if (getData(TCSD_PACKET_TYPE_UINT32, 0, &hContext, 0, &data->comm))
38 return TCSERR(TSS_E_INTERNAL_ERROR); 38 return TCSERR(TSS_E_INTERNAL_ERROR);
39 39
40 » LogDebugFn("thread %zd context %x", THREAD_ID, hContext); 40 » LogDebugFn("thread %ld context %x", THREAD_ID, hContext);
41 41
42 if (getData(TCSD_PACKET_TYPE_SECRET, 1, &operatorAuth, 0, &data->comm)) 42 if (getData(TCSD_PACKET_TYPE_SECRET, 1, &operatorAuth, 0, &data->comm))
43 return TCSERR(TSS_E_INTERNAL_ERROR); 43 return TCSERR(TSS_E_INTERNAL_ERROR);
44 44
45 MUTEX_LOCK(tcsp_lock); 45 MUTEX_LOCK(tcsp_lock);
46 46
47 result = TCSP_SetOperatorAuth_Internal(hContext, &operatorAuth); 47 result = TCSP_SetOperatorAuth_Internal(hContext, &operatorAuth);
48 48
49 MUTEX_UNLOCK(tcsp_lock); 49 MUTEX_UNLOCK(tcsp_lock);
50 50
51 initData(&data->comm, 0); 51 initData(&data->comm, 0);
52 52
53 data->comm.hdr.u.result = result; 53 data->comm.hdr.u.result = result;
54 54
55 return TSS_SUCCESS; 55 return TSS_SUCCESS;
56 } 56 }
57 57
OLDNEW
« no previous file with comments | « src/tcs/rpc/tcstp/rpc_migration.c ('k') | src/tcs/rpc/tcstp/rpc_own.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698