OLD | NEW |
1 /* Software-Based Trusted Platform Module (TPM) Emulator for Linux | 1 /* Software-based Trusted Platform Module (TPM) Emulator |
2 * Copyright (C) 2004 Mario Strasser <mast@gmx.net>, | 2 * Copyright (C) 2004-2010 Mario Strasser <mast@gmx.net> |
3 * Swiss Federal Institute of Technology (ETH) Zurich | |
4 * | 3 * |
5 * This module is free software; you can redistribute it and/or modify | 4 * This module is free software; you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License as published | 5 * it under the terms of the GNU General Public License as published |
7 * by the Free Software Foundation; either version 2 of the License, | 6 * by the Free Software Foundation; either version 2 of the License, |
8 * or (at your option) any later version. | 7 * or (at your option) any later version. |
9 * | 8 * |
10 * This module is distributed in the hope that it will be useful, | 9 * This module is distributed in the hope that it will be useful, |
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 * GNU General Public License for more details. | 12 * GNU General Public License for more details. |
14 * | 13 * |
15 * $Id$ | 14 * $Id: tpm_management.c 364 2010-02-11 10:24:45Z mast $ |
16 */ | 15 */ |
17 | 16 |
18 #include "tpm_emulator.h" | 17 #include "tpm_emulator.h" |
19 #include "tpm_commands.h" | 18 #include "tpm_commands.h" |
20 #include "tpm_data.h" | 19 #include "tpm_data.h" |
21 | 20 |
22 /* | 21 /* |
23 * Administrative Functions ([TPM_Part3], Section 9) | 22 * Administrative Functions ([TPM_Part3], Section 9) |
24 */ | 23 */ |
25 | 24 |
(...skipping 20 matching lines...) Expand all Loading... |
46 info("TPM_ResetLockValue"); | 45 info("TPM_ResetLockValue"); |
47 if (tpmData.stclear.data.disableResetLock) return TPM_AUTHFAIL; | 46 if (tpmData.stclear.data.disableResetLock) return TPM_AUTHFAIL; |
48 res = tpm_verify_auth(auth1, tpmData.permanent.data.ownerAuth, TPM_KH_OWNER); | 47 res = tpm_verify_auth(auth1, tpmData.permanent.data.ownerAuth, TPM_KH_OWNER); |
49 if (res != TPM_SUCCESS) { | 48 if (res != TPM_SUCCESS) { |
50 tpmData.stclear.data.disableResetLock = TRUE; | 49 tpmData.stclear.data.disableResetLock = TRUE; |
51 return res; | 50 return res; |
52 } | 51 } |
53 /* reset dictionary attack mitigation mechanism */ | 52 /* reset dictionary attack mitigation mechanism */ |
54 return TPM_SUCCESS; | 53 return TPM_SUCCESS; |
55 } | 54 } |
OLD | NEW |