1
.\" Copyright (C) 2004 International Business Machines Corporation
2
.\" Written by Kathy Robertson based on the Trusted Computing Group Software Stack Specification Version 1.1 Golden
12
.de Sp \" Vertical space (when we can't use .PP)
18
.ie \\n(.$>=3 .ne \\$3
22
.TH "Tspi_SetAttribData" 3 "2004-05-26" "TSS 1.1" "TCG Software Stack Developer's Reference"
24
Tspi_SetAttribData \- set a non 32bit attribute of an object.
29
.B #include <tss/platform.h>
30
.B #include <tss/tcpa_defines.h>
31
.B #include <tss/tcpa_typedef.h>
32
.B #include <tss/tcpa_struct.h>
33
.B #include <tss/tss_typedef.h>
34
.B #include <tss/tss_structs.h>
35
.B #include <tss/tspi.h>
37
.BI "TSS_RESULT Tspi_SetAttribData(TSS_HOBJECT " hObject ", TSS_FLAG " attribFlag ","
38
.BI " TSS_FLAG " subFlag ", UINT32 " ulAttribDataSize ","
39
.BI " BYTE* " rgbAttribData ");"
47
\fBTspi_SetAttribData\fR 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.
51
Handle of the object where the attribute is to be set.
54
Flag indicating the attribute to set.
57
Sub flag indicating the attribute to set
60
Supplies the length (in bytes) of the rgbAttribData.
63
Pointer to the actual data which is to be set for the specified attribute.
66
\fBTspi_SetAttribData\fR returns TSS_SUCCESS on success, otherwise one of the following values are returned:
68
.SM TSS_E_INVALID_HANDLE - \fIhObject\fR is an invalid parameter.
70
.SM TSS_E_ATTRIB_FLAG - \fIattribFlag\fR is an invalid parameter.
72
.SM TSS_E_ATTRIB_SUBFLAG - \fIsubFlag\fR is an invalid parameter.
74
.SM TSS_E_ATTRIB_DATA - \fIrgbAttribData\fR is an invalid parameter.
76
.SM TSS_E_BAD_PARAMETER
78
.SM TSS_E_INTERNAL_ERROR - An error occurred internal to the TSS.
83
\fBTspi_SetAttribData\fR conforms to the Trusted Computing Group Software Specification version 1.1 Golden
87
\fBTspi_GetAttribData\fR(3).