Tspi_G...ibData(3)
β¨ Tspi_GetAttribData β¨</p>
okay bestie, welcome to the TCG Software Stack Developer's Reference π this one lives in section 3 of the manual, and it's all about pulling a non-32-bit attribute out of an object. yes, the 32-bit ones have their own whole thing going on. this is for the other ones. π
NAME π¦
Tspi_GetAttribData β get a non 32bit attribute of the object.
SYNOPSIS πΈ
#include <tss/platform.h>
#include <tss/tcpa_defines.h>
#include <tss/tcpa_typedef.h>
#include <tss/tcpa_struct.h>
#include <tss/tss_typedef.h>
#include <tss/tss_structs.h>
#include <tss/tspi.h>
TSS_RESULT Tspi_GetAttribData(TSS_HOBJECT hObject, TSS_FLAG attribFlag,
TSS_FLAG subFlag, UINT32* pulAttribDataSize,
BYTE** prgbAttribData);
like, look at all those headers. she's thorough. π
DESCRIPTION π
so Tspi_GetAttribData is the function you call when you want the value of a particular attribute that's attached to a particular object β but specifically when that attribute is not a UINT32. the 32-bit girlies have their own function, this is not that.
and the way the data is structured? the way the size works? it literally depends on the attribute. so don't come in here expecting one shape. it's giving "it depends". π€·βοΈ
PARAMETERS π
hObject
the handle of the object where you wanna retrieve the attribute from. that's your girl. that's who you're asking. π«Ά
attribFlag
a flag indicating the attribute to query. which one are we looking at, bestie? π
subFlag
a sub flag indicating the attribute to query. yes, there's a sub flag. it's a whole layered situation. β¨
pulAttribDataSize
receives the length (in bytes) of the prgbAttribData parameter. so it tells you how big the thing is. π₯
prgbAttribData
on successful completion of the command, this parameter points to a buffer containing the actual data of the specified attribute. that's the payload. that's the main character. π
RETURN CODES π
Tspi_GetAttribData returns TSS_SUCCESS on success, otherwise one of the following values are returned:
TSS_E_INVALID_HANDLEβ eitherhObject,attribFlag, orsubFlagare invalid.TSS_E_ATTRIB_FLAGTSS_E_ATTRIB_SUBFLAGTSS_E_ATTRIB_DATATSS_E_BAD_PARAMETERTSS_E_INTERNAL_ERRORβ an error occurred internal to the TSS.
ngl if you're getting one of these, check your handles and flags first. TSS_E_INVALID_HANDLE is right there telling you something in that trio is off. π
CONFORMING TO π
Tspi_GetAttribData conforms to the Trusted Computing Group Software Specification version 1.1 Golden. yes, Golden. iconic behavior only. β
SEE ALSO π§
and that's the whole page, bestie!! π this was TSS 1.1, dated 2004-05-26, from the TCG Software Stack Developer's Reference. slay, go get that attribute data. no cap. π β¨
π¦ where this page comes from
- debian bookworm: libtspi-dev 0.3.15-0.3 Β· BSD-3-Clause
- debian trixie: libtspi-dev 0.3.15-0.4 Β· BSD-3-Clause
- epel 10: trousers-devel 0.3.15-11.el10_0 Β· BSD
- epel 9: trousers-devel 0.3.15-5.el9 Β· BSD
- fedora 43: trousers-devel 0.3.15-15.fc43 Β· LicenseRef-Callaway-BSD
- fedora 43: trousers-devel 0.3.15-15.fc43 Β· LicenseRef-Callaway-BSD
- fedora 43: trousers-devel 0.3.15-16.fc43 Β· LicenseRef-Callaway-BSD
- fedora 43: trousers-devel 0.3.15-16.fc43 Β· LicenseRef-Callaway-BSD
- fedora 44: trousers-devel 0.3.15-17.fc44 Β· LicenseRef-Callaway-BSD
- fedora 44: trousers-devel 0.3.15-17.fc44 Β· LicenseRef-Callaway-BSD
- nixos 26.05: trousers 0.3.15
- nixpkgs unstable: netbsd-source 11.0
- nixpkgs unstable: trousers 0.3.15
- opensuse-leap 16.0: trousers-devel 0.3.15-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: trousers-devel 0.3.15-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: trousers-devel 0.3.15-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: trousers-devel 0.3.15-160000.2.2 Β· BSD-3-Clause
- ubuntu jammy: libtspi-dev 0.3.15-0.2 Β· BSD-3-Clause
- ubuntu noble: libtspi-dev 0.3.15-0.3build2 Β· BSD-3-Clause
- ubuntu questing: libtspi-dev 0.3.15-0.4
- ubuntu resolute: libtspi-dev 0.3.15-1 Β· BSD-3-Clause
- ubuntu stonking: libtspi-dev 0.3.15-1ubuntu2 Β· BSD-3-Clause
- Copyright (C) 2004 International Business Machines Corporation
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms