---
name: "Tspi_SetAttribData"
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_SetAttribData"
---

# Tspi\_SetAttribData(3)

set a non 32bit attribute of an object.

## NAME

Tspi\_SetAttribData - set a non 32bit attribute of an 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\_SetAttribData(TSS\_HOBJECT** *hObject***, TSS\_FLAG** *attribFlag***,**                               **TSS\_FLAG**    *subFlag***, UINT32**   *ulAttribDataSize***,**                               **BYTE\***       *rgbAttribData***);**

## DESCRIPTION

**Tspi\_SetAttribData**  sets the attributes associated with a given class of object that aren't UINT32. The structure and size of hte attribute data depends on the attribute.

## PARAMETERS

### hObject

Handle of the object where the attribute is to be set.

### attribFlag

Flag indicating the attribute to set.

### subFlag

Sub flag indicating the attribute to set

### ulAttribDataSize

Supplies the length (in bytes) of the rgbAttribData.

### rgbAttribData

Pointer to the actual data which is to be set for the specified attribute.

## RETURN CODES

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

## CONFORMING TO

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

## SEE ALSO

[**Tspi\_GetAttribData**(3)](/Tspi_GetAttribData/3.md).
