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

« back to all changes in this revision

Viewing changes to src/tcs/rpc/tcstp/rpc_aik.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:
56
56
        if (getData(TCSD_PACKET_TYPE_UINT32, 0, &hContext, 0, &data->comm))
57
57
                return TCSERR(TSS_E_INTERNAL_ERROR);
58
58
 
 
59
        if ((result = ctx_verify_context(hContext)))
 
60
                goto done;
 
61
 
59
62
        LogDebugFn("thread %ld context %x", THREAD_ID, hContext);
60
63
 
61
64
        if (getData(TCSD_PACKET_TYPE_ENCAUTH, 1, &identityAuth, 0, &data->comm))
139
142
                free(prgbPlatCred);
140
143
                free(prgbConfCred);
141
144
        } else
142
 
                initData(&data->comm, 0);
 
145
done:           initData(&data->comm, 0);
143
146
 
144
147
        data->comm.hdr.u.result = result;
145
148
 
168
171
        if (getData(TCSD_PACKET_TYPE_UINT32, 0, &hContext, 0, &data->comm))
169
172
                return TCSERR(TSS_E_INTERNAL_ERROR);
170
173
 
 
174
        if ((result = ctx_verify_context(hContext)))
 
175
                goto done;
 
176
 
171
177
        LogDebugFn("thread %ld context %x", THREAD_ID, hContext);
172
178
 
173
179
        if (getData(TCSD_PACKET_TYPE_UINT32, 1, &idKeyHandle, 0, &data->comm))
232
238
                }
233
239
                free(SymmetricKey);
234
240
        } else
235
 
                initData(&data->comm, 0);
 
241
done:           initData(&data->comm, 0);
236
242
 
237
243
        data->comm.hdr.u.result = result;
238
244
 
253
259
        if (getData(TCSD_PACKET_TYPE_UINT32, 0, &hContext, 0, &data->comm))
254
260
                return TCSERR(TSS_E_INTERNAL_ERROR);
255
261
 
 
262
        if ((result = ctx_verify_context(hContext)))
 
263
                goto done;
 
264
 
256
265
        if (getData(TCSD_PACKET_TYPE_UINT32, 1, &CredType, 0, &data->comm))
257
266
                return TCSERR(TSS_E_INTERNAL_ERROR);
258
267
 
273
282
 
274
283
                free(CredData);
275
284
        } else
276
 
                initData(&data->comm, 0);
 
285
done:           initData(&data->comm, 0);
277
286
 
278
287
        data->comm.hdr.u.result = result;
279
288
        return TSS_SUCCESS;