Esys_GetCapability(3)
π
Esys_GetCapability β the tpm2-tss glow-up, bestie edition β¨
Okay so picture this: you're deep in the tpm2-tss library manual, page three, and you meet Esys_GetCapability β literally the ESAPI function for the TPM2_GetCapability command. She's the one who asks the TPM "hey babes, what can you do?" and the TPM answers in capability data. Iconic behavior, no cap. π
β¨ NAME β¨
Esys_GetCapability β the ESAPI function for the TPM2_GetCapability command. That's it, that's the whole vibe. π¦
πΈ SYNOPSIS πΈ
Functions
TSS2_RC Esys_GetCapability_Async (ESYS_CONTEXT *esysContext, ESYS_TR
shandle1, ESYS_TR shandle2, ESYS_TR shandle3, TPM2_CAP capability,
UINT32 property, UINT32 propertyCount)
TSS2_RC Esys_GetCapability (ESYS_CONTEXT *esysContext, ESYS_TR shandle1,
ESYS_TR shandle2, ESYS_TR shandle3, TPM2_CAP capability, UINT32
property, UINT32 propertyCount, TPMI_YES_NO *moreData,
TPMS_CAPABILITY_DATA **capabilityData)
TSS2_RC Esys_GetCapability_Finish (ESYS_CONTEXT *esysContext,
TPMI_YES_NO *moreData, TPMS_CAPABILITY_DATA **capabilityData)
π Detailed Description π
So the ESAPI function here is the one that invokes the TPM2_GetCapability command β and you get to pick your fighter: either the one-call variant (chill, blocks, gets it done) or the asynchronous manner (send it and dip). Both are valid, both are serving. π
π₯ Function Documentation π₯
TSS2_RC Esys_GetCapability (ESYS_CONTEXT * esysContext, ESYS_TR shandle1, ESYS_TR shandle2, ESYS_TR shandle3, TPM2_CAP capability, UINT32 property, UINT32 propertyCount, TPMI_YES_NO * moreData, TPMS_CAPABILITY_DATA ** capabilityData)
One-Call function for TPM2_GetCapability β the "I'll wait, it's fine" girlie. π
This function invokes the TPM2_GetCapability command in a one-call variant. Translation: the function will block until the TPM response is available, so she's not leaving until she gets her answer, periodt. All input parameters are const. The memory for non-simple output parameters is allocated by the function implementation β so that's on her, not you, bestie. π«Ά
Parameters
esysContextβ TheESYS_CONTEXT.shandle1β First session handle.shandle2β Second session handle.shandle3β Third session handle.capabilityβ Group selection; determines the format of the response.propertyβ Further definition of information.propertyCountβ Number of properties of the indicated type to return.moreDataβ Flag to indicate if there are more values of this type.capabilityDataβ The capability data. (callee-allocated)
Return values
TSS2_RC_SUCCESSβ if the function call was a success. slay. β¨TSS2_ESYS_RC_BAD_REFERENCEβ if theesysContextor required input pointers or required output handle references areNULL.TSS2_ESYS_RC_BAD_CONTEXTβ ifesysContextcorruption is detected. πTSS2_ESYS_RC_MEMORYβ if the ESAPI cannot allocate enough memory for internal operations or return parameters.TSS2_ESYS_RC_BAD_SEQUENCEβ if the context has an asynchronous operation already pending. one thing at a time, babe.TSS2_ESYS_RC_INSUFFICIENT_RESPONSEβ if the TPM's response does not at least contain the tag, response length, and response code.TSS2_ESYS_RC_MALFORMED_RESPONSEβ if the TPM's response is corrupted.TSS2_ESYS_RC_RSP_AUTH_FAILEDβ if the response HMAC from the TPM did not verify. π©TSS2_ESYS_RC_MULTIPLE_DECRYPT_SESSIONSβ if more than one session has the'decrypt'attribute bit set.TSS2_ESYS_RC_MULTIPLE_ENCRYPT_SESSIONSβ if more than one session has the'encrypt'attribute bit set.TSS2_ESYS_RC_NO_DECRYPT_PARAMβ if one of the sessions has the'decrypt'attribute set and the command does not support encryption of the first command parameter.TSS2_ESYS_RC_NO_ENCRYPT_PARAMβ if one of the sessions has the'encrypt'attribute set and the command does not support encryption of the first response parameter.TSS2_RCs produced by lower layers of the software stack β may be returned to the caller unaltered unless handled internally. they said "we're not touching that," and honestly? respect.
TSS2_RC Esys_GetCapability_Async (ESYS_CONTEXT * esysContext, ESYS_TR shandle1, ESYS_TR shandle2, ESYS_TR shandle3, TPM2_CAP capability, UINT32 property, UINT32 propertyCount)
Asynchronous function for TPM2_GetCapability β the "text you later" variant. π¦
This function invokes the TPM2_GetCapability command in a asynchronous variant. This means the function will return as soon as the command has been sent downwards the stack to the TPM. All input parameters are const. In order to retrieve the TPM's response call Esys_GetCapability_Finish β she left you on read, so you gotta follow up. π
Parameters
esysContextβ TheESYS_CONTEXT.shandle1β First session handle.shandle2β Second session handle.shandle3β Third session handle.capabilityβ Group selection; determines the format of the response.propertyβ Further definition of information.propertyCountβ Number of properties of the indicated type to return.
Return values
ESYS_RC_SUCCESSβ if the function call was a success. βTSS2_ESYS_RC_BAD_REFERENCEβ if theesysContextor required input pointers or required output handle references areNULL.TSS2_ESYS_RC_BAD_CONTEXTβ ifesysContextcorruption is detected.TSS2_ESYS_RC_MEMORYβ if the ESAPI cannot allocate enough memory for internal operations or return parameters.TSS2_RCs produced by lower layers of the software stack β may be returned to the caller unaltered unless handled internally.TSS2_ESYS_RC_MULTIPLE_DECRYPT_SESSIONSβ if more than one session has the'decrypt'attribute bit set.TSS2_ESYS_RC_MULTIPLE_ENCRYPT_SESSIONSβ if more than one session has the'encrypt'attribute bit set.TSS2_ESYS_RC_NO_DECRYPT_PARAMβ if one of the sessions has the'decrypt'attribute set and the command does not support encryption of the first command parameter.TSS2_ESYS_RC_NO_ENCRYPT_PARAMβ if one of the sessions has the'encrypt'attribute set and the command does not support encryption of the first response parameter.
TSS2_RC Esys_GetCapability_Finish (ESYS_CONTEXT * esysContext, TPMI_YES_NO * moreData, TPMS_CAPABILITY_DATA ** capabilityData)
Asynchronous finish function for TPM2_GetCapability β the "soβ¦ what did she say?" moment. π
This function returns the results of a TPM2_GetCapability command invoked via Esys_GetCapability_Finish. All non-simple output parameters are allocated by the function's implementation. NULL can be passed for every output parameter if the value is not required β literally "don't need it, don't want it, skip." πββοΈ
lowkey the docs say it was invoked via Esys_GetCapability_Finish β yes bestie, that's what the page says, we're not fixing it, we're just reporting it. π«‘
Parameters
esysContextβ TheESYS_CONTEXT.moreDataβ Flag to indicate if there are more values of this type.capabilityDataβ The capability data. (callee-allocated)
Return values
TSS2_RC_SUCCESSβ on success. πESYS_RC_SUCCESSβ if the function call was a success.TSS2_ESYS_RC_BAD_REFERENCEβ if theesysContextor required input pointers or required output handle references areNULL.TSS2_ESYS_RC_BAD_CONTEXTβ ifesysContextcorruption is detected.TSS2_ESYS_RC_MEMORYβ if the ESAPI cannot allocate enough memory for internal operations or return parameters.TSS2_ESYS_RC_BAD_SEQUENCEβ if the context has an asynchronous operation already pending.TSS2_ESYS_RC_TRY_AGAINβ if the timeout counter expires before the TPM response is received. she's taking a minute, try again. πTSS2_ESYS_RC_INSUFFICIENT_RESPONSEβ if the TPM's response does not at least contain the tag, response length, and response code.TSS2_ESYS_RC_RSP_AUTH_FAILEDβ if the response HMAC from the TPM did not verify.TSS2_ESYS_RC_MALFORMED_RESPONSEβ if the TPM's response is corrupted.TSS2_RCs produced by lower layers of the software stack β may be returned to the caller unaltered unless handled internally.
π§ Author π§
Generated automatically by Doxygen for tpm2-tss from the source code. (Not a human, not a vibe curator β a whole robot wrote this and honestly she ate. π)
π okay that's the whole page, every flag, every return code, everyconst, everyNULL. no crumbs left. π
tpm2-tss β Version 4.1.5 β and this page is dated Esys_GetCapability(3), mwah. π
π¦ 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