Fapi_SetSignCB(3)
π NAME π
okay bestie, welcome to the Fapi_SetSignCB(3) page β the manual name is Library Functions Manual, and the name is literally Fapi_SetSignCB with the one-liner Fapi_SetSignCB. iconic, no cap. π
β¨ SYNOPSIS β¨
Typedefs
two typedefs on deck, fr fr:
typedef TSS2_RC(* Fapi_CB_Sign) (char const *objectPath, char const
*description, char const *publicKey, char const *publicKeyHint,
uint32_t hashAlg, uint8_t const *dataToSign, size_t dataToSignSize,
uint8_t const **signature, size_t *signatureSize, void *userData)
typedef TSS2_RC(* Fapi_CB_PolicyAction) (char const *objectPath, char
const *action, void *userData)
Functions
the function besties on deck π«Ά:
TSS2_RC Fapi_SetSignCB (FAPI_CONTEXT *context, Fapi_CB_Sign callback,
void *userData)
TSS2_RC Fapi_SetPolicyActionCB (FAPI_CONTEXT *context,
Fapi_CB_PolicyAction callback, void *userData)
πΈ Detailed Description πΈ
these are the FAPI functions to invoke SetSignCB. lowkey that's the whole vibe check. β¨
π Function Documentation π
π¦ Fapi_SetPolicyActionCB π¦
TSS2_RC Fapi_SetPolicyActionCB (FAPI_CONTEXT * context, Fapi_CB_PolicyAction
callback, void * userData)
Fapi_SetActionCB() registers an application-defined function as a callback that shall be called back upon encountering a policy action element. yes bestie, the description says Fapi_SetActionCB() β that's the name right there in the text, iykyk. π
Parameters
contextβ TheFAPI_CONTEXT.callbackβ The callback function for branch selection.userDataβ A pointer that is provided to all callback invocations.
Return values
TSS2_RC_SUCCESSβ if the function call was a success.TSS2_FAPI_RC_BAD_REFERENCEβ if the context isNULL.TSS2_FAPI_RC_BAD_CONTEXTβ if context corruption is detected.TSS2_FAPI_RC_MEMORYβ if the FAPI cannot allocate enough memory for internal operations or return parameters.TSS2_FAPI_RC_BAD_SEQUENCEβ if the synchronous or Async functions are called while the context has another asynchronous operation outstanding, or the Finish function is called while the context does not have an appropriate asynchronous operation outstanding.TSS2_FAPI_RC_IO_ERRORβ if the data cannot be saved.
π Fapi_SetSignCB π
TSS2_RC Fapi_SetSignCB (FAPI_CONTEXT * context, Fapi_CB_Sign callback, void
* userData)
Fapi_SetSignCB() registers an application-defined function as a callback to allow the FAPI to get signatures authorizing use of TPM objects. it's giving signature-gatekeeper energy π₯.
Parameters
contextβ TheFAPI_CONTEXT.callbackβ The callback function for signing selection.userDataβ A pointer that is provided to all callback invocations.
Return values
TSS2_RC_SUCCESSβ if the function call was a success.TSS2_FAPI_RC_BAD_REFERENCEβ if the context isNULL.TSS2_FAPI_RC_BAD_CONTEXTβ if context corruption is detected.TSS2_FAPI_RC_MEMORYβ if the FAPI cannot allocate enough memory for internal operations or return parameters.TSS2_FAPI_RC_BAD_SEQUENCEβ if the synchronous or Async functions are called while the context has another asynchronous operation outstanding, or the Finish function is called while the context does not have an appropriate asynchronous operation outstanding.TSS2_FAPI_RC_IO_ERRORβ if the data cannot be saved.
π Author π
Generated automatically by Doxygen for tpm2-tss from the source code. slay, automation π.
xoxo bestie π«Ά β footer deets: source tpm2-tss, Version 4.1.5, page Fapi_SetSignCB(3). π
π¦ 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