1Tspi_Context_GetDefaultPolicLyi(b3r)ary Functions MaTnsupail_Context_GetDefaultPolicy(3)
2
3
4
5                   TCG Software Stack Developers Reference
6

NAME

8       Tspi_Context_GetDefaultPolicy  -  Get  a  handle  to the default policy
9       object of a given context.
10

SYNOPSIS

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_Context_GetDefaultPolicy(TSS_HCONTEXT hContext, TSS_HPOLICY *phPolicy);
21
22
23

DESCRIPTION

25       Tspi_Context_GetDefaultPolicy determines what policy is used by all  of
26       the keys in a given context.
27
28

PARAMETERS

30   hContext
31       The hContext parameter is the handle of the context object.
32
33   phPolicy
34       The phPolicy parameter receives the handle of the default policy object
35       bound to the context.
36
37

RETURN CODES

39       Tspi_Context_GetDefaultPolicy returns TSS_SUCCESS on success, otherwise
40       one of the following values is returned:
41
42       TSS_E_INVALID_HANDLE
43              hContext is not a valid handle.
44
45
46       TSS_E_INTERNAL_ERROR
47              An internal SW error has been detected.
48
49

CONFORMING TO

51       Tspi_Context_GetDefaultPolicy  conforms  to the Trusted Computing Group
52       Software Specification version 1.1 Golden
53
54

SEE ALSO

56       Tspi_Context_Create(3), Tspi_Context_Connect(3), Tspi_Context_FreeMemo‐
57       ry(3), Tspi_Context_Close(3).
58
59
60
61
62TSS 1.1                           2004-05-25  Tspi_Context_GetDefaultPolicy(3)
Impressum