~ubuntu-branches/ubuntu/utopic/trousers/utopic

« back to all changes in this revision

Viewing changes to src/tspi/rpc/tcstp/rpc_cmk.c

  • Committer: Package Import Robot
  • Author(s): Pierre Chifflier
  • Date: 2013-08-20 18:01:47 UTC
  • mfrom: (1.1.7)
  • Revision ID: package-import@ubuntu.com-20130820180147-ucz33jh8z2qx47ya
Tags: 0.3.11.2-1
* Imported Upstream version 0.3.11.2
* Upstream license changed to BSD
* Example tools are not shipped anymore
* Remove 05-gcc47.patch, not needed anymore
* Updated symbols file

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
#include "trousers/tss.h"
17
17
#include "trousers/trousers.h"
18
18
#include "trousers_types.h"
 
19
#include "spi_utils.h"
19
20
#include "tsplog.h"
20
21
#include "hosttable.h"
21
22
#include "tcsd_wrap.h"
123
124
        } else {
124
125
                TPM_AUTH nullAuth;
125
126
 
126
 
                memset(&nullAuth, 0, sizeof(TPM_AUTH));
 
127
                __tspi_memset(&nullAuth, 0, sizeof(TPM_AUTH));
127
128
                if (setData(TCSD_PACKET_TYPE_AUTH, 7, &nullAuth, 0, &hte->comm))
128
129
                        return TSPERR(TSS_E_INTERNAL_ERROR);
129
130
        }
266
267
        } else {
267
268
                TPM_AUTH nullAuth;
268
269
 
269
 
                memset(&nullAuth, 0, sizeof(TPM_AUTH));
 
270
                __tspi_memset(&nullAuth, 0, sizeof(TPM_AUTH));
270
271
                if (setData(TCSD_PACKET_TYPE_AUTH, 14, &nullAuth, 0, &hte->comm))
271
272
                        return TSPERR(TSS_E_INTERNAL_ERROR);
272
273
        }
359
360
        } else {
360
361
                TPM_AUTH nullAuth;
361
362
 
362
 
                memset(&nullAuth, 0, sizeof(TPM_AUTH));
 
363
                __tspi_memset(&nullAuth, 0, sizeof(TPM_AUTH));
363
364
                if (setData(TCSD_PACKET_TYPE_AUTH, 10, &nullAuth, 0, &hte->comm))
364
365
                        return TSPERR(TSS_E_INTERNAL_ERROR);
365
366
        }