TPMLIB_WasManufactured(3)

TPMLIB_WasManufactured3

Check whether a new instance was created

Usage

#include <libtpms/tpm_types.h>

#include <libtpms/tpm_library.h>

#include <libtpms/tpm_error.h>

TPM_BOOL TPMLIB_WasManufactured(void);

Library

TPM library (libtpms, -ltpms)

Overview

TPMLIB_WasManufactured() is used to check whether a new TPM instance was created using TPMLIB_MainInit() rather than an already existing one was restarted. This function will only return a valid result if it is called after TPMLIB_MainInit().

This function only applies to a TPM 2 and for a TPM 1.2 it will always return FALSE.

From libtpms 0.10.2-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.