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

Unified Diff: testsuite/tcg/tpm/Tspi_TPM_KeyControlOwner01.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « testsuite/tcg/tpm/Makefile ('k') | testsuite/tcg/transport/Makefile » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: testsuite/tcg/tpm/Tspi_TPM_KeyControlOwner01.c
diff --git a/testsuite/tcg/tpm/Tspi_TPM_KeyControlOwner01.c b/testsuite/tcg/tpm/Tspi_TPM_KeyControlOwner01.c
index d3fa3cdbf4238a67bd43edd51a2b5c60143d43ea..bcc6d132b4efa97194035a3f3001b2cc0ae042f3 100644
--- a/testsuite/tcg/tpm/Tspi_TPM_KeyControlOwner01.c
+++ b/testsuite/tcg/tpm/Tspi_TPM_KeyControlOwner01.c
@@ -191,7 +191,8 @@ main_v1_2(char version){
//Set Ownerevict bit
result = Tspi_TPM_KeyControlOwner(hTPM, hKey, TSS_TSPATTRIB_KEYCONTROL_OWNEREVICT,
- TRUE, &Uuid);
+ FALSE, &Uuid);
+
if (result != TSS_SUCCESS) {
print_error(nameOfFunction, result);
print_end_test(nameOfFunction);
@@ -201,6 +202,9 @@ main_v1_2(char version){
} else {
print_success(nameOfFunction, result);
print_end_test(nameOfFunction);
+ Tspi_TPM_KeyControlOwner(hTPM, hKey, TSS_TSPATTRIB_KEYCONTROL_OWNEREVICT,
+ FALSE, &Uuid);
+ Tspi_Key_UnloadKey(hKey);
Tspi_Context_FreeMemory( hContext, NULL );
Tspi_Context_Close(hContext);
exit(0);
« no previous file with comments | « testsuite/tcg/tpm/Makefile ('k') | testsuite/tcg/transport/Makefile » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698