-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tpm2: Implement TPMLIB_WasManufactured API call
Implement TPMLIB_WasManufactured API call for a TPM 2 so that callers can detect whether a TPM 2 instance was newly created and therefore the profile that was set was also applied. Signed-off-by: Stefan Berger <[email protected]>
- Loading branch information
1 parent
2dc1af1
commit 16e648e
Showing
9 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
=head1 NAME | ||
|
||
TPMLIB_WasManufactured - Check whether a new instance was created | ||
|
||
=head1 LIBRARY | ||
|
||
TPM library (libtpms, -ltpms) | ||
|
||
=head1 SYNOPSIS | ||
|
||
B<#include <libtpms/tpm_types.h>> | ||
|
||
B<#include <libtpms/tpm_library.h>> | ||
|
||
B<#include <libtpms/tpm_error.h>> | ||
|
||
B<TPM_BOOL TPMLIB_WasManufactured(void);> | ||
|
||
=head1 DESCRIPTION | ||
|
||
B<TPMLIB_WasManufactured()> is used to check whether a new TPM instance was | ||
created using B<TPMLIB_MainInit()> rather than an already existing one was | ||
restarted. This function will only return a valid result if it is called after | ||
B<TPMLIB_MainInit()>. | ||
|
||
This function only applies to a TPM 2 and for a TPM 1.2 it will always | ||
return I<FALSE>. | ||
|
||
=head1 SEE ALSO | ||
|
||
B<TPMLIB_ChooseTPMVersion>, B<TPMLIB_MainInit>(3) | ||
|
||
=cut |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,6 +41,7 @@ LIBTPMS_0.6.0 { | |
LIBTPMS_0.10.0 { | ||
global: | ||
TPMLIB_SetProfile; | ||
TPMLIB_WasManufactured; | ||
local: | ||
*; | ||
} LIBTPMS_0.6.0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters