Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: src/tspi/tspi_nv.c

Issue 3581012: Upgrade from trousers 0.3.3 to 0.3.6 and from testsuite 0.2 to 0.3. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/trousers.git
Patch Set: git cl push Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/tspi/tspi_aik.c ('k') | src/tspi/tspi_ps.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * The Initial Developer of the Original Code is Intel Corporation. 2 * The Initial Developer of the Original Code is Intel Corporation.
3 * Portions created by Intel Corporation are Copyright (C) 2007 Intel Corporatio n. 3 * Portions created by Intel Corporation are Copyright (C) 2007 Intel Corporatio n.
4 * All Rights Reserved. 4 * All Rights Reserved.
5 * 5 *
6 * This program is free software; you can redistribute it and/or modify 6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the Common Public License as published by 7 * it under the terms of the Common Public License as published by
8 * IBM Corporation; either version 1 of the License, or (at your option) 8 * IBM Corporation; either version 1 of the License, or (at your option)
9 * any later version. 9 * any later version.
10 * 10 *
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 } 210 }
211 free_tspi(tspContext, pResult); 211 free_tspi(tspContext, pResult);
212 212
213 if (!defined_index) { 213 if (!defined_index) {
214 result = TSPERR(TSS_E_NV_AREA_NOT_EXIST); 214 result = TSPERR(TSS_E_NV_AREA_NOT_EXIST);
215 return result; 215 return result;
216 } 216 }
217 217
218 nv_data_public.tag = TPM_TAG_NV_DATA_PUBLIC; 218 nv_data_public.tag = TPM_TAG_NV_DATA_PUBLIC;
219 219
220 » if ((result = obj_nvstore_create_pcrshortinfo(hNvstore, (TSS_HPCRS)0, &p PCR_len, &pPCR))) 220 » if ((result = obj_nvstore_create_pcrshortinfo(hNvstore, NULL_HPCRS, &pPC R_len, &pPCR)))
221 return result; 221 return result;
222 222
223 NVPublic_DataSize = 0; 223 NVPublic_DataSize = 0;
224 Trspi_LoadBlob_UINT16(&NVPublic_DataSize, TPM_TAG_NV_DATA_PUBLIC, NVPubl icData); 224 Trspi_LoadBlob_UINT16(&NVPublic_DataSize, TPM_TAG_NV_DATA_PUBLIC, NVPubl icData);
225 Trspi_LoadBlob_UINT32(&NVPublic_DataSize, nv_data_public.nvIndex, NVPubl icData); 225 Trspi_LoadBlob_UINT32(&NVPublic_DataSize, nv_data_public.nvIndex, NVPubl icData);
226 /* load the read pcr short info */ 226 /* load the read pcr short info */
227 Trspi_LoadBlob(&NVPublic_DataSize, pPCR_len, NVPublicData, pPCR); 227 Trspi_LoadBlob(&NVPublic_DataSize, pPCR_len, NVPublicData, pPCR);
228 /* load the write pcr short info */ 228 /* load the write pcr short info */
229 Trspi_LoadBlob(&NVPublic_DataSize, pPCR_len, NVPublicData, pPCR); 229 Trspi_LoadBlob(&NVPublic_DataSize, pPCR_len, NVPublicData, pPCR);
230 Trspi_LoadBlob_UINT16(&NVPublic_DataSize, TPM_TAG_NV_ATTRIBUTES, NVPubli cData); 230 Trspi_LoadBlob_UINT16(&NVPublic_DataSize, TPM_TAG_NV_ATTRIBUTES, NVPubli cData);
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
515 } 515 }
516 } else { 516 } else {
517 if ((result = TCS_API(tspContext)->NV_ReadValue(tspContext, nv_d ata_public.nvIndex, 517 if ((result = TCS_API(tspContext)->NV_ReadValue(tspContext, nv_d ata_public.nvIndex,
518 offset, ulDataLe ngth, NULL, 518 offset, ulDataLe ngth, NULL,
519 rgbDataRead))) 519 rgbDataRead)))
520 return result; 520 return result;
521 } 521 }
522 522
523 return result; 523 return result;
524 } 524 }
OLDNEW
« no previous file with comments | « src/tspi/tspi_aik.c ('k') | src/tspi/tspi_ps.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698