---
name: "Tspi_GetAttribData"
section: "3"
platform: "linux"
package: "libtspi-dev"
version: "0.3.15-0.4"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Tspi_GetAttribData"
---

# Tspi\_GetAttribData(3)

get a non 32bit attribute of the object.

## 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***);**

## DESCRIPTION

**Tspi\_GetAttribData**  is used to get the value of a particular attribute associated iwth a particular object where that attribute does not happen to be a UINT32. The structure and size of the attribute data depends on the attribute.

## PARAMETERS

### hObject

Handle of the object where to retrieve the attribute.

### attribFlag

Flag indicating the attribute to query.

### subFlag

Sub flag indicating the attribute to query.

### pulAttribDataSize

Recieves the length (in bytes) of the prgbAttribData parameter.

### prgbAttribData

On successful completion of the command, this parameter points to a buffer containing the actual data of the specified attribute.

## RETURN CODES

**Tspi\_GetAttribData** returns TSS\_SUCCESS on success, otherwise one of the following values are returned: TSS\_E\_INVALID\_HANDLE - Either *hObject*, *attribFlag*, or *subFlag* are invalid. TSS\_E\_ATTRIB\_FLAG TSS\_E\_ATTRIB\_SUBFLAG TSS\_E\_ATTRIB\_DATA TSS\_E\_BAD\_PARAMETER TSS\_E\_INTERNAL\_ERROR - An error occurred internal to the TSS.

## CONFORMING TO

**Tspi\_GetAttribData** conforms to the Trusted Computing Group Software Specification version 1.1 Golden

## SEE ALSO

[**Tspi\_SetAttribData**(3)](/Tspi_SetAttribData/3.md).
