| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |