1Tspi_SetAttribUint32(3) Library Functions Manual Tspi_SetAttribUint32(3)
2
3
4
5 TCG Software Stack Developers Reference
6
8 Tspi_SetAttribUint32 - set a 32bit attribute associated with a given
9 class or object
10
12 #include <tss/platform.h>
13 #include <tss/tcpa_defines.h>
14 #include <tss/tcpa_typedef.h>
15 #include <tss/tcpa_struct.h>
16 #include <tss/tss_typedef.h>
17 #include <tss/tss_structs.h>
18 #include <tss/tspi.h>
19
20 TSS_RESULT Tspi_SetAttribUint32(TSS_HOBJECT hObject, TSS_FLAG attribFlag,
21 TSS_FLAG subFlag, UINT32 ulAttrib);
22
23
24
26 Tspi_SetAttribUint32 sets a uint32 attribute associated with a given
27 class or object. In order to use this command, you must first create an
28 object and then find the attributes you wish to set.
29
30
32 hObject
33 The hObject parameter is the handle of the object or class whose at‐
34 tributes are being set. Note that this is any object handler - context,
35 policy, TPM, key, hash, etc.
36
37 attribFlag
38 The attribFlag parameter indicates the specific attribute to be set.
39
40 subFlag
41 The subFlag parameter also indicates the specific attribute to be set.
42
43 ulAttrib
44 The ulAttrib parameter is the value that the specified attribute will
45 be set to.
46
47
49 Tspi_SetAttribUint32 returns TSS_SUCCESS on success, otherwise one of
50 the following values is returned:
51
52 TSS_E_INVALID_HANDLE
53 hObject is not a valid handle.
54
55
56 TSS_E_INVALID_ATTRIB_FLAG
57 attribFlag is incorrect.
58
59
60 TSS_E_INVALID_ATTRIB_SUBFLAG
61 subFlag is incorrect.
62
63
64 TSS_E_INVALID_ATTRIB_DATA
65 ulAttrib is incorrect.
66
67
68 TSS_E_INTERNAL_ERROR
69 An internal SW error has been detected.
70
71
72 TSS_E_BAD_PARAMETER
73 One or more parameters is bad.
74
75
77 Tspi_SetAttribUint32 conforms to the Trusted Computing Group Software
78 Specification version 1.1 Golden
79
80
82 Tspi_GetAttribUint32(3), Tspi_SetAttribData(3), Tspi_GetAttribData(3).
83
84
85
86
87TSS 1.1 2004-05-25 Tspi_SetAttribUint32(3)