1Tspi_GetPolicyObject(3)    Library Functions Manual    Tspi_GetPolicyObject(3)
2
3
4
5                   TCG Software Stack Developers Reference
6

NAME

8       Tspi_GetPolicyObject - get a policy object assigned to a working object
9

SYNOPSIS

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_GetPolicyObject(TSS_HOBJECT  hObject, TSS_FLAG policyType,
20                                       TSS_HPOLICY* phPolicy);
21
22
23

DESCRIPTION

25       Tspi_GetPolicyObject  returns  a  policy object currently assigned to a
26       working object. If you determine that the policy is different from what
27       you  require, you can change the policy by creating a new one and using
28       Tspi_Policy_AssignToObject.
29
30

PARAMETERS

32   hObject
33       The hObject parameter is the handle of the object.
34
35   policyType
36       The policyType parameter indicates the policy type of interest.   Types
37       are TSS_POLICY_USAGE and TSS_POLICY_MIGRATION.
38
39   phPolicy
40       The  phPolicy  parameter receives the handle to the assigned policy ob‐
41       ject.
42
43

RETURN CODES

45       Tspi_GetPolicyObject returns TSS_SUCCESS on success, otherwise  one  of
46       the following values is returned:
47
48       TSS_E_INVALID_HANDLE
49              hContext is not a valid handle.
50
51
52       TSS_E_INTERNAL_ERROR
53              An internal SW error has been detected.
54
55
56       TSS_E_BAD_PARAMETER
57              One or more parameters is bad.
58
59

CONFORMING TO

61       Tspi_GetPolicyObject  conforms  to the Trusted Computing Group Software
62       Specification version 1.1 Golden
63
64

SEE ALSO

66       Tspi_Context_GetTpmObject(3),  Tspi_Context_LoadKeyByUUID(3),  Tspi_Se‐
67       tAttribUint32(3), Tspi_Policy_AssignToObject(3).
68
69
70
71
72TSS 1.1                           2004-05-25           Tspi_GetPolicyObject(3)
Impressum