| OLD | NEW |
| 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 GNU General Public License as published by | 7 * it under the terms of the GNU General Public License as published by |
| 8 * the Free Software Foundation; either version 2 of the License, or | 8 * the Free Software Foundation; either version 2 of the License, or |
| 9 * (at your option) any later version. | 9 * (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 exit(result); | 258 exit(result); |
| 259 } | 259 } |
| 260 | 260 |
| 261 #else | 261 #else |
| 262 if (result== TSS_SUCCESS) | 262 if (result== TSS_SUCCESS) |
| 263 { | 263 { |
| 264 print_success(nameOfFunction, result); | 264 print_success(nameOfFunction, result); |
| 265 print_end_test(nameOfFunction); | 265 print_end_test(nameOfFunction); |
| 266 | 266 |
| 267 #ifdef CLEAR_TEST_INDEX | 267 #ifdef CLEAR_TEST_INDEX |
| 268 Tspi_Context_GetTpmObject(hContext, &hTPM); | |
| 269 Tspi_GetPolicyObject(hTPM, TSS_POLICY_USAGE, &hPolicy); | |
| 270 Tspi_Policy_SetSecret( hPolicy, TESTSUITE_OWNER_SECRET_MODE, | |
| 271 TESTSUITE_OWNER_SECRET_LEN, TESTSUITE_OW
NER_SECRET); | 268 TESTSUITE_OWNER_SECRET_LEN, TESTSUITE_OW
NER_SECRET); |
| 272 Tspi_NV_ReleaseSpace(hNVStore); | 269 Tspi_NV_ReleaseSpace(hNVStore); |
| 273 #endif | 270 #endif |
| 274 | 271 |
| 275 Tspi_Context_FreeMemory(hContext, NULL); | 272 Tspi_Context_FreeMemory(hContext, NULL); |
| 276 Tspi_Context_Close(hContext); | 273 Tspi_Context_Close(hContext); |
| 277 exit(0); | 274 exit(0); |
| 278 } | 275 } |
| 279 else{ | 276 else{ |
| 280 print_error("Tspi_NV_DefineSpace", result); | 277 print_error("Tspi_NV_DefineSpace", result); |
| 281 print_end_test(nameOfFunction); | 278 print_end_test(nameOfFunction); |
| 282 Tspi_Context_FreeMemory(hContext, NULL); | 279 Tspi_Context_FreeMemory(hContext, NULL); |
| 283 Tspi_Context_Close(hContext); | 280 Tspi_Context_Close(hContext); |
| 284 exit(result); | 281 exit(result); |
| 285 } | 282 } |
| 286 #endif | 283 #endif |
| 287 } | 284 } |
| OLD | NEW |