1Tspi_Policy_AssignToObject(3L)ibrary Functions ManuaTlspi_Policy_AssignToObject(3)
2
3
4
5 TCG Software Stack Developers Reference
6
8 Tspi_Policy_AssignToObject - assign a policy to an object
9
11 #include <tss/platform.h>
12 #include <tss/tcpa_defines.h>
13 #include <tss/tcpa_typedef.h>
14 #include <tss/tcpa_struct.h>
15 #include <tss/tss_typedef.h>
16 #include <tss/tss_structs.h>
17 #include <tss/tspi.h>
18
19 TSS_RESULT Tspi_Policy_AssignToObject(TSS_HPOLICY hPolicy, TSS_HOBJECT hObject);
20
21
22
24 Tspi_Policy_AssignToObject assigns a given object to a certain policy.
25 The object then uses its assigned policy to process an authorized TPM
26 command. When each new object is initialized, it is assigned to the de‐
27 fault policy, which is created when a context object is created. When
28 an object is assigned to a policy, a reference is added to the list of
29 assigned objects stored in the policy, and a reference to the policy is
30 stored in the object by internal object functions.
31
32
34 hPolicy
35 The hPolicy parameter is the handle of the policy object to be assigned
36 to.
37
38 hObject
39 The hObject parameter is the object that will be assigned to hPolicy.
40
41
43 Tspi_Policy_AssignToObject returns TSS_SUCCESS on success, otherwise
44 one of the following values is returned:
45
46 TSS_E_INVALID_HANDLE
47 hPolicy is not a valid handle.
48
49
50 TSS_E_INTERNAL_ERROR
51 An internal SW error has been detected.
52
53
55 Tspi_Policy_AssignToObject conforms to the Trusted Computing Group
56 Software Specification version 1.1 Golden
57
58
60 Tspi_Policy_SetSecret(3), Tspi_Policy_FlushSecret(3).
61
62
63
64
65TSS 1.1 2004-05-25 Tspi_Policy_AssignToObject(3)