~ubuntu-branches/ubuntu/vivid/trousers/vivid

« back to all changes in this revision

Viewing changes to src/tcs/rpc/tcstp/rpc_transport.c

  • Committer: Package Import Robot
  • Author(s): Pierre Chifflier
  • Date: 2012-11-10 17:04:44 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20121110170444-yvoa372npyp02mwr
Tags: 0.3.10-1
* Imported Upstream version 0.3.10
* Update symbols file
* Force build of tools

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
        if (getData(TCSD_PACKET_TYPE_UINT32, 0, &hContext, 0, &data->comm))
43
43
                return TCSERR(TSS_E_INTERNAL_ERROR);
44
44
 
 
45
        if ((result = ctx_verify_context(hContext)))
 
46
                goto done;
 
47
 
45
48
        LogDebugFn("thread %ld context %x", THREAD_ID, hContext);
46
49
 
47
50
        if (getData(TCSD_PACKET_TYPE_UINT32, 1, &ulTransControlFlags, 0, &data->comm))
126
129
                if (setData(TCSD_PACKET_TYPE_NONCE, i++, &pTransNonce, 0, &data->comm))
127
130
                        return TCSERR(TSS_E_INTERNAL_ERROR);
128
131
        } else
129
 
                initData(&data->comm, 0);
 
132
done:           initData(&data->comm, 0);
130
133
 
131
134
        data->comm.hdr.u.result = result;
132
135
        return TSS_SUCCESS;
148
151
        if (getData(TCSD_PACKET_TYPE_UINT32, i++, &hContext, 0, &data->comm))
149
152
                return TCSERR(TSS_E_INTERNAL_ERROR);
150
153
 
 
154
        if ((result = ctx_verify_context(hContext)))
 
155
                goto done;
 
156
 
151
157
        LogDebugFn("thread %ld context %x", THREAD_ID, hContext);
152
158
 
153
159
        if (getData(TCSD_PACKET_TYPE_UINT32, i++, &unWrappedCommandOrdinal, 0, &data->comm))
291
297
                }
292
298
                free(rgbWrappedCmdDataOut);
293
299
        } else
294
 
                initData(&data->comm, 0);
 
300
done:           initData(&data->comm, 0);
295
301
 
296
302
        data->comm.hdr.u.result = result;
297
303
        return TSS_SUCCESS;
315
321
        if (getData(TCSD_PACKET_TYPE_UINT32, 0, &hContext, 0, &data->comm))
316
322
                return TCSERR(TSS_E_INTERNAL_ERROR);
317
323
 
 
324
        if ((result = ctx_verify_context(hContext)))
 
325
                goto done;
 
326
 
318
327
        LogDebugFn("thread %ld context %x", THREAD_ID, hContext);
319
328
 
320
329
        if (getData(TCSD_PACKET_TYPE_UINT32, 1, &hSignatureKey, 0, &data->comm))
390
399
                }
391
400
                free(prgbSignature);
392
401
        } else
393
 
                initData(&data->comm, 0);
 
402
done:           initData(&data->comm, 0);
394
403
 
395
404
        data->comm.hdr.u.result = result;
396
405
        return TSS_SUCCESS;