Fapi_GetPl...rtificates(3)
π NAME
Fapi_GetPlatformCertificates β literally Fapi_GetPlatformCertificates, no cap ππ. Also folding in the page tea right here: title is Fapi_GetPl...rtificates(3), manual name is Library Functions Manual β now you're caught up, bestie π«Ά.
β¨ SYNOPSIS β¨
π Functions
TSS2_RC Fapi_GetPlatformCertificates (FAPI_CONTEXT *context, uint8_t
**certificates, size_t *certificatesSize)
TSS2_RC Fapi_GetPlatformCertificates_Async (FAPI_CONTEXT *context)
TSS2_RC Fapi_GetPlatformCertificates_Finish (FAPI_CONTEXT *context,
uint8_t **certificates, size_t *certificatesSize)
πΈ DETAILED DESCRIPTION πΈ
These are the FAPI functions that invoke GetPlatformCertificates either as a one-call or in an asynchronous manner, periodt β¨.
π§ FUNCTION DOCUMENTATION π§
π One-call: Fapi_GetPlatformCertificates
TSS2_RC Fapi_GetPlatformCertificates (FAPI_CONTEXT * context, uint8_t **
certificates, size_t * certificatesSize)
One-call function for Fapi_GetPlatformCertificates β yes bestie, the one-shot version π
.
Platform certificates for TPM 2.0 can consist not only of a single certificate but a series of so-called delta certificates. This function returns the set of Platform certificates concatenated in a continuous buffer. Obsessed with a continuous buffer, honestly π«Άβ¨.
π Parameters
contextβ theFAPI_CONTEXTπ.certificatesβ the platform certificates π.certificatesSizeβ the size of the buffer with the certificates. May beNULLπ.
π Return values
TSS2_RC_SUCCESSβ the function call was a success, slay β .TSS2_FAPI_RC_BAD_REFERENCEβcontextorcertificatesisNULLπ.TSS2_FAPI_RC_BAD_CONTEXTβ context corruption was detected π.TSS2_FAPI_RC_BAD_SEQUENCEβ the context already has an asynchronous operation pending, not now bestie π .TSS2_FAPI_RC_IO_ERRORβ the data cannot be saved π« .TSS2_FAPI_RC_MEMORYβ FAPI cannot allocate enough memory for internal operations or return parameters π΅βπ«.TSS2_FAPI_RC_NO_TPMβ FAPI was initialized in no-TPM-mode via its config file π«.TSS2_FAPI_RC_NO_CERTβ an error did occur during certificate downloading π¬.TSS2_FAPI_RC_TRY_AGAINβ an I/O operation is not finished yet and this function needs to be called again π.TSS2_FAPI_RC_AUTHORIZATION_UNKNOWNβ a required authorization callback is not set π.TSS2_FAPI_RC_AUTHORIZATION_FAILEDβ the authorization attempt fails π€.TSS2_FAPI_RC_GENERAL_FAILUREβ an internal error occurred π₯.TSS2_FAPI_RC_POLICY_UNKNOWNβ policy search for a certain policy digest was not successful π.TSS2_ESYS_RC_*β possible error codes of ESAPI π.TSS2_FAPI_RC_NOT_PROVISIONEDβ FAPI was not provisioned π§.TSS2_FAPI_RC_KEY_NOT_FOUNDβ a key was not found π.TSS2_FAPI_RC_BAD_PATHβ the path is used in inappropriate context or contains illegal characters π£οΈ.TSS2_FAPI_RC_BAD_VALUEβ an invalid value was passed into the function π©.TSS2_FAPI_RC_PATH_NOT_FOUNDβ a FAPI object path was not found during authorization π§.
π¦ Async: Fapi_GetPlatformCertificates_Async
TSS2_RC Fapi_GetPlatformCertificates_Async (FAPI_CONTEXT * context)
Asynchronous function for Fapi_GetPlatformCertificates β it's giving async main character energy β³β¨.
Platform certificates for TPM 2.0 can consist not only of a single certificate but a series of so-called delta certificates. This function returns the set of Platform certificates concatenated in a continuous buffer. Again: continuous buffer, iconic π«Ά.
Call Fapi_GetPlatformCertificates_Finish to finish the execution of this command, bestie π
.
π Parameters
contextβ theFAPI_CONTEXTπ.
π Return values
TSS2_RC_SUCCESSβ the function call was a success, periodt β .TSS2_FAPI_RC_BAD_REFERENCEβcontextisNULLπ.TSS2_FAPI_RC_BAD_CONTEXTβ context corruption was detected π.TSS2_FAPI_RC_BAD_SEQUENCEβ the context already has an asynchronous operation pending π¨.TSS2_FAPI_RC_IO_ERRORβ the data cannot be saved π« .TSS2_FAPI_RC_MEMORYβ FAPI cannot allocate enough memory for internal operations or return parameters π΅βπ«.TSS2_FAPI_RC_NO_TPMβ FAPI was initialized in no-TPM-mode via its config file π«.
π Finish: Fapi_GetPlatformCertificates_Finish
TSS2_RC Fapi_GetPlatformCertificates_Finish (FAPI_CONTEXT * context, uint8_t
** certificates, size_t * certificatesSize)
Asynchronous finish function for Fapi_GetPlatformCertificates β the grand finale, your async era is ending π.
This function should be called after a previous Fapi_GetPlatformCertificates_Async, iykyk π§.
π Parameters
contextβ theFAPI_CONTEXTπ.certificatesβ the platform certificates π.certificatesSizeβ the size of the buffer with the certificates. May beNULLπ.
π Return values
TSS2_RC_SUCCESSβ the function call was a success, ate β .TSS2_FAPI_RC_BAD_REFERENCEβcontextorcertificatesisNULLπ.TSS2_FAPI_RC_BAD_CONTEXTβ context corruption was detected π.TSS2_FAPI_RC_BAD_SEQUENCEβ the context already has an asynchronous operation pending π¨.TSS2_FAPI_RC_IO_ERRORβ the data cannot be saved π« .TSS2_FAPI_RC_MEMORYβ FAPI cannot allocate enough memory for internal operations or return parameters π΅βπ«.TSS2_FAPI_RC_TRY_AGAINβ the asynchronous operation is not yet complete. Call this function again later π.TSS2_FAPI_RC_NO_CERTβ an error did occur during certificate downloading π¬.TSS2_FAPI_RC_AUTHORIZATION_UNKNOWNβ a required authorization callback is not set π.TSS2_FAPI_RC_AUTHORIZATION_FAILEDβ the authorization attempt fails π€.TSS2_FAPI_RC_GENERAL_FAILUREβ an internal error occurred π₯.TSS2_FAPI_RC_POLICY_UNKNOWNβ policy search for a certain policy digest was not successful π.TSS2_ESYS_RC_*β possible error codes of ESAPI π.TSS2_FAPI_RC_NOT_PROVISIONEDβ FAPI was not provisioned π§.TSS2_FAPI_RC_KEY_NOT_FOUNDβ a key was not found π.TSS2_FAPI_RC_BAD_PATHβ the path is used in inappropriate context or contains illegal characters π£οΈ.TSS2_FAPI_RC_BAD_VALUEβ an invalid value was passed into the function π©.TSS2_FAPI_RC_PATH_NOT_FOUNDβ a FAPI object path was not found during authorization π§.
π AUTHOR π
Generated automatically by Doxygen for tpm2-tss from the source code πβ¨.
Ok that's the whole page, bestie β source: tpm2-tss, version: 4.1.5; the footer has no date printed, so I'm not inventing one π. Bye and go get those platform certificates π«Άππ
π¦ where this page comes from
- fedora 44: tpm2-tss-devel 4.1.5-1.fc44 Β· BSD-2-Clause
- fedora 44: tpm2-tss-devel 4.1.5-1.fc44 Β· BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms