libtpms/man/man3/TPMLIB_WasManufactured.pod
Stefan Berger 16e648e98f 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 <stefanb@linux.ibm.com>
2024-08-30 16:25:47 -04:00

34 lines
730 B
Plaintext

=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