Fapi_AuthorizePolicy(3)
πΈ NAME πΈ
Fapi_AuthorizePolicy β Fapi_AuthorizePolicy (yes bestie, that's the whole name section, no cap β¨).
Okay so this is Fapi_AuthorizePolicy(3), from the Library Functions Manual, and it's about authorizing policies in FAPI. Iconic behavior only π
.
β¨ SYNOPSIS β¨
Functions
TSS2_RC Fapi_AuthorizePolicy (FAPI_CONTEXT *context, char const
*policyPath, char const *keyPath, uint8_t const *policyRef, size_t
policyRefSize)
TSS2_RC Fapi_AuthorizePolicy_Async (FAPI_CONTEXT *context, char const
*policyPath, char const *keyPath, uint8_t const *policyRef, size_t
policyRefSize)
TSS2_RC Fapi_AuthorizePolicy_Finish (FAPI_CONTEXT *context)
Three little functions, one big authorization moment π«Ά:
Fapi_AuthorizePolicyβ the one-call versionFapi_AuthorizePolicy_Asyncβ the asynchronous starterFapi_AuthorizePolicy_Finishβ the asynchronous finisher
π Detailed Description π
These are the FAPI functions that invoke AuthorizePolicy either as a one-call or in an asynchronous manner. Main character energy for real π.
π Function Documentation π
π«Ά TSS2_RC Fapi_AuthorizePolicy β the one-call icon π«Ά
TSS2_RC Fapi_AuthorizePolicy (FAPI_CONTEXT *context, char const *
policyPath, char const *keyPath, uint8_t const *policyRef, size_t
policyRefSize)
One-Call function for Fapi_AuthorizePolicy β¨.
If a current policy happens to be a PolicyAuthorize, then for it to be used, the user must first satisfy βa policy authorized by a having been signed (and made into a ticket) by an authorized party.β Yes, that's the phrasing β we keep the technical tea exactly as it is π.
Parameters
contextβ the FAPI contextpolicyPathβ the path to the policy filekeyPathβ the path to the signing keypolicyRefβ a byte buffer that is included in the signature. May beNULLpolicyRefSizeβ the size ofpolicyRef. Must be0ifpolicyRefisNULL
Return values
TSS2_RC_SUCCESSβ if the function call was a success πTSS2_FAPI_RC_BAD_REFERENCEβ ifcontext,policyPathorkeyPathisNULLTSS2_FAPI_RC_BAD_CONTEXTβ if context corruption is detectedTSS2_FAPI_RC_BAD_PATHβ ifpolicyPathorkeyPathdoes not map to a FAPI policy or key objectTSS2_FAPI_RC_BAD_SEQUENCEβ if the context has an asynchronous operation already pendingTSS2_FAPI_RC_IO_ERRORβ if the data cannot be savedTSS2_FAPI_RC_MEMORYβ if the FAPI cannot allocate enough memory for internal operations or return parametersTSS2_FAPI_RC_NO_TPMβ if FAPI was initialized in no-TPM-mode via its config fileTSS2_FAPI_RC_BAD_VALUEβ if an invalid value was passed into the functionTSS2_FAPI_RC_TRY_AGAINβ if an I/O operation is not finished yet and this function needs to be called againTSS2_FAPI_RC_GENERAL_FAILUREβ if an internal error occurredTSS2_FAPI_RC_PATH_NOT_FOUNDβ if a FAPI object path was not found during authorizationTSS2_FAPI_RC_KEY_NOT_FOUNDβ if a key was not foundTSS2_FAPI_RC_AUTHORIZATION_UNKNOWNβ if a required authorization callback is not setTSS2_FAPI_RC_AUTHORIZATION_FAILEDβ if the authorization attempt failsTSS2_FAPI_RC_POLICY_UNKNOWNβ if policy search for a certain policy digest was not successfulTSS2_ESYS_RC_*β possible error codes of ESAPITSS2_FAPI_RC_NOT_PROVISIONEDβ FAPI was not provisioned
π¦ TSS2_RC Fapi_AuthorizePolicy_Async β the async starter π¦
TSS2_RC Fapi_AuthorizePolicy_Async (FAPI_CONTEXT *context, char const *
policyPath, char const *keyPath, uint8_t const *policyRef, size_t
policyRefSize)
Asynchronous function for Fapi_AuthorizePolicy π.
Same policy tea as above: if a current policy happens to be a PolicyAuthorize, then for it to be used, the user must first satisfy βa policy authorized by a having been signed (and made into a ticket) by an authorized party.β No skipping the lore π.
Call Fapi_AuthorizePolicy_Finish to finish the execution of this command.
Parameters
contextβ the FAPI contextpolicyPathβ the path to the policy filekeyPathβ the path to the signing keypolicyRefβ a byte buffer that is included in the signature. May beNULLpolicyRefSizeβ the size ofpolicyRef. Must be0ifpolicyRefisNULL
Return values
TSS2_RC_SUCCESSβ if the function call was a success πTSS2_FAPI_RC_BAD_REFERENCEβ ifcontext,policyPathorkeyPathisNULLTSS2_FAPI_RC_BAD_CONTEXTβ if context corruption is detectedTSS2_FAPI_RC_BAD_PATHβ ifpolicyPathorkeyPathdoes not map to a FAPI policy or key objectTSS2_FAPI_RC_BAD_SEQUENCEβ if the context has an asynchronous operation already pendingTSS2_FAPI_RC_IO_ERRORβ if the data cannot be savedTSS2_FAPI_RC_MEMORYβ if the FAPI cannot allocate enough memory for internal operations or return parametersTSS2_FAPI_RC_BAD_VALUEβ if an invalid value was passed into the functionTSS2_FAPI_RC_NO_TPMβ if FAPI was initialized in no-TPM-mode via its config file
π§ TSS2_RC Fapi_AuthorizePolicy_Finish β the async finisher π§
TSS2_RC Fapi_AuthorizePolicy_Finish (FAPI_CONTEXT *context)
Asynchronous finish function for Fapi_AuthorizePolicy π.
This function should be called after a previous Fapi_AuthorizePolicy_Async. It's giving βfinish the questβ energy, bestie π₯.
Parameters
contextβ theFAPI_CONTEXT
Return values
TSS2_RC_SUCCESSβ if the function call was a success πTSS2_FAPI_RC_BAD_REFERENCEβ ifcontextisNULLTSS2_FAPI_RC_BAD_CONTEXTβ if context corruption is detectedTSS2_FAPI_RC_BAD_SEQUENCEβ if the context has an asynchronous operation already pendingTSS2_FAPI_RC_IO_ERRORβ if the data cannot be savedTSS2_FAPI_RC_MEMORYβ if the FAPI cannot allocate enough memory for internal operations or return parametersTSS2_FAPI_RC_TRY_AGAINβ if the asynchronous operation is not yet complete. Call this function again laterTSS2_FAPI_RC_GENERAL_FAILUREβ if an internal error occurredTSS2_FAPI_RC_PATH_NOT_FOUNDβ if a FAPI object path was not found during authorizationTSS2_FAPI_RC_KEY_NOT_FOUNDβ if a key was not foundTSS2_FAPI_RC_BAD_VALUEβ if an invalid value was passed into the functionTSS2_FAPI_RC_AUTHORIZATION_UNKNOWNβ if a required authorization callback is not setTSS2_FAPI_RC_AUTHORIZATION_FAILEDβ if the authorization attempt failsTSS2_FAPI_RC_POLICY_UNKNOWNβ if policy search for a certain policy digest was not successfulTSS2_ESYS_RC_*β possible error codes of ESAPITSS2_FAPI_RC_NOT_PROVISIONEDβ FAPI was not provisionedTSS2_FAPI_RC_BAD_PATHβ if the path is used in inappropriate context or contains illegal characters
π Author π
Generated automatically by Doxygen for tpm2-tss from the source code. Very βthe build made this page itselfβ of it all π
.
Later bestie π β source is tpm2-tss, version 4.1.5. That's the cute sign-off version of the footer, folded in instead of copied, periodt π«Άβ¨
π¦ 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