~ubuntu-branches/ubuntu/precise/trousers/precise-proposed

« back to all changes in this revision

Viewing changes to src/tspi/tspi_nv.c

  • Committer: Package Import Robot
  • Author(s): Pierre Chifflier
  • Date: 2011-11-21 21:21:39 UTC
  • mfrom: (0.1.17 sid)
  • Revision ID: package-import@ubuntu.com-20111121212139-ctknyhaijski2e02
Tags: 0.3.7-1
* Imported Upstream version 0.3.7
* Adopt package (set new maintainer) (Closes: #543932)
* Add pkg-config to build-depends
* Update symbols for libtspi1
* Use dh --with autoreconf
* Update patches to work with dh_autoreconf

Show diffs side-by-side

added added

removed removed

Lines of Context:
130
130
        free_tspi(tspContext, pWritePCR);
131
131
 
132
132
        if ((result = authsess_xsap_init(tspContext, hTpm, hNvstore, need_authdata,
133
 
                                         TPM_ORD_NV_DefineSpace, TPM_ET_OWNER, &xsap)))
 
133
                                         TPM_ORD_NV_DefineSpace, TPM_ET_OWNER, &xsap))) {
 
134
                if (result == TSPERR(TSS_E_TSP_AUTHREQUIRED))
 
135
                        result = TSS_ERROR_CODE(TSS_E_BAD_PARAMETER);
134
136
                return result;
135
 
 
 
137
        }
 
138
        
136
139
        result = Trspi_HashInit(&hashCtx, TSS_HASH_SHA1);
137
140
        result |= Trspi_Hash_UINT32(&hashCtx, TPM_ORD_NV_DefineSpace);
138
141
        result |= Trspi_HashUpdate(&hashCtx, NVPublic_DataSize, NVPublicData);