Fapi_GetAppData(3)
π Fapi_GetAppData(3) β the tpm2-tss library functions manual, bestie edition
okay so welcome to the Fapi_GetAppData glow-up β¨ this is page three of the library functions manual, and yes we are literally about to get your object's appData out of the FAPI like it's a stashed note in a group chat π
πΈ NAME πΈ
Fapi_GetAppData β bestie, it's literally Fapi_GetAppData, that's the whole name, no notes π
β¨ SYNOPSIS β¨
π¦ Functions π¦
TSS2_RC Fapi_GetAppData (FAPI_CONTEXT *context, char const *path,
uint8_t **appData, size_t *appDataSize)
TSS2_RC Fapi_GetAppData_Async (FAPI_CONTEXT *context, char const *path)
TSS2_RC Fapi_GetAppData_Finish (FAPI_CONTEXT *context, uint8_t
**appData, size_t *appDataSize)
π Detailed Description π
FAPI functions to invoke GetAppData either as a one-call or in an asynchronous manner. lowkey iconic of them to give you both options π«Ά
π Function Documentation π
π TSS2_RC Fapi_GetAppData (FAPI_CONTEXT * context, char const * path, uint8_t ** appData, size_t * appDataSize)
One-Call function for Fapi_GetAppData. one and done, no follow-up needed, main character energy fr fr π₯
Every object has a description field that can be retrieved in order to obtain additional information in its "path" entry. like every object keeps a lil notes-app entry and this is how you read it π
Parameters
contextβ TheFAPI_CONTEXTpathβ The path to the object for which the appData is returnedappDataβ A copy of the appData. May beNULL(callee-allocated)appDataSizeβ The size of the returned AppData. May beNULL
Return values
TSS2_RC_SUCCESSβ if the function call was a success. slay πTSS2_FAPI_RC_BAD_REFERENCEβ ifcontextorpathisNULL.TSS2_FAPI_RC_BAD_CONTEXTβ if context corruption is detected. uh oh πTSS2_FAPI_RC_BAD_PATHβ ifpathdoes not map to a FAPI entity.TSS2_FAPI_RC_BAD_SEQUENCEβ if the context has an asynchronous operation already pending. one thing at a time bestie πTSS2_FAPI_RC_IO_ERRORβ if the data cannot be saved.TSS2_FAPI_RC_MEMORYβ if the FAPI cannot allocate enough memory for internal operations or return parameters.TSS2_FAPI_RC_NO_TPMβ if FAPI was initialized in no-TPM-mode via its config file.TSS2_FAPI_RC_PATH_NOT_FOUNDβ if a FAPI object path was not found during authorization.TSS2_FAPI_RC_KEY_NOT_FOUNDβ if a key was not found.TSS2_FAPI_RC_BAD_VALUEβ if an invalid value was passed into the function.TSS2_FAPI_RC_TRY_AGAINβ if an I/O operation is not finished yet and this function needs to be called again. it's giving "not yet, call me back" βTSS2_FAPI_RC_GENERAL_FAILUREβ if an internal error occurred. πTSS2_FAPI_RC_NOT_PROVISIONEDβ FAPI was not provisioned.
π§ TSS2_RC Fapi_GetAppData_Async (FAPI_CONTEXT * context, char const * path)
Asynchronous function for Fapi_GetAppData. she's doing her own thing in the background, respect her process β¨
Every object has a description field that can be retrieved in order to obtain additional information in its "path" entry. same deal as the one-call version, no cap.
Call Fapi_GetAppData_Finish to finish the execution of this command. don't leave her hanging π«Ά
Parameters
contextβ TheFAPI_CONTEXTpathβ The path to the object for which the appData is returned
Return values
TSS2_RC_SUCCESSβ if the function call was a success.TSS2_FAPI_RC_BAD_REFERENCEβ ifcontextorpathisNULL.TSS2_FAPI_RC_BAD_CONTEXTβ if context corruption is detected.TSS2_FAPI_RC_BAD_PATHβ ifpathdoes not map to a FAPI entity.TSS2_FAPI_RC_BAD_SEQUENCEβ if the context has an asynchronous operation already pending.TSS2_FAPI_RC_IO_ERRORβ if the data cannot be saved.TSS2_FAPI_RC_MEMORYβ if the FAPI cannot allocate enough memory for internal operations or return parameters.TSS2_FAPI_RC_NO_TPMβ if FAPI was initialized in no-TPM-mode via its config file.TSS2_FAPI_RC_PATH_NOT_FOUNDβ if a FAPI object path was not found during authorization.TSS2_FAPI_RC_KEY_NOT_FOUNDβ if a key was not found.TSS2_FAPI_RC_BAD_VALUEβ if an invalid value was passed into the function.TSS2_FAPI_RC_NOT_PROVISIONEDβ FAPI was not provisioned.
π TSS2_RC Fapi_GetAppData_Finish (FAPI_CONTEXT * context, uint8_t ** appData, size_t * appDataSize)
Asynchronous finish function for Fapi_GetAppData. the grand finale, the reveal, the moment we've all been waiting for π
This function should be called after a previous Fapi_GetAppData_Async.
Parameters
contextβ TheFAPI_CONTEXTappDataβ A copy of the appData. May beNull(callee-allocated)appDataSizeβ The size of the returned AppData. May beNULL
ok tiny detail bestie, the original really does capitalise it differently here β it says "May beNull" in this one and "May beNULL" in the other two. not me noticing that π keeping it exactly as written fr fr.
Return values
TSS2_RC_SUCCESSβ if the function call was a success.TSS2_FAPI_RC_BAD_REFERENCEβ ifcontextisNULL.TSS2_FAPI_RC_BAD_CONTEXTβ if context corruption is detected.TSS2_FAPI_RC_BAD_SEQUENCEβ if the context has an asynchronous operation already pending.TSS2_FAPI_RC_IO_ERRORβ if the data cannot be saved.TSS2_FAPI_RC_MEMORYβ if the FAPI cannot allocate enough memory for internal operations or return parameters.TSS2_FAPI_RC_TRY_AGAINβ if the asynchronous operation is not yet complete. Call this function again later. she's still cooking π₯TSS2_FAPI_RC_BAD_PATHβ if a path is used in inappropriate context or contains illegal characters.TSS2_FAPI_RC_GENERAL_FAILUREβ if an internal error occurred.TSS2_FAPI_RC_BAD_VALUEβ if an invalid value was passed into the function.
πΊ Author πΊ
Generated automatically by Doxygen for tpm2-tss from the source code. the robots wrote it, we just gave it β¨auraβ¨
π and that's the whole page bestie β this is fromtpm2-tss, Version 4.1.5, and the page is datedFapi_GetAppData(3). go forth and get that appData, you absolute icon ππ¦πΈ
π¦ 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