Introduction to Library Functions
Tspi_Context_GetDefaultPolicy(3)
TCG Software Stack Developers ReferenceNAME
Tspi_Context_GetDefaultPolicy - Get a handle to the default
policy object of a given context.SYNOPSIS
#include
#include
#include
#include
#include
#include
#include
TSS_RESULT Tspi_Context_GetDefaultPolicy(TSS_HCONTEXT hContext, TSS_HPOLICY *phPolicy);
DESCRIPTION
Tspi_Context_GetDefaultPolicy determines what policy is used
by all of the keys in a given context.PARAMETERS
hContext The hContext parameter is the handle of the context object. phPolicy The phPolicy parameter receives the handle of the default policy object bound to the context. RETURN CODESTspi_Context_GetDefaultPolicy returns TSS_SUCCESS on suc-
cess, otherwise one of the following values is returned:TSS_E_INVALID_HANDLE
hContext is not a valid handle.TSS_E_INTERNAL_ERROR
An internal SW error has been detected. CONFORMING TOTspi_Context_GetDefaultPolicy conforms to the Trusted Com-
puting Group Software Specification version 1.1 GoldenTSS 1.1 Last change: 2004-05-25 1
Introduction to Library FunctionsTspi_Context_GetDefaultPolicy(3)
SEE ALSO
Tspi_Context_Create(3), Tspi_Context_Connect(3),
Tspi_Context_FreeMemory(3), Tspi_Context_Close(3).
ATTRIBUTES
See attributes(5) for descriptions of the following attri-
butes:__________________________________________________
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|____________________|_____________________________|_
| Availability | library/security/trousers ||____________________|_____________________________|_
| Interface Stability| Uncommitted ||____________________|____________________________|
NOTES Source for trousers is available at http://opensolaris.organd at http://sourceforge.net/projects/trousers. Documenta-
tion is available at file:///usr/share/man, and http://sourceforge.net/projects/trousers.TSS 1.1 Last change: 2004-05-25 2
Introduction to Library FunctionsTspi_Context_GetDefaultPolicy(3)
TSS 1.1 Last change: 2004-05-25 3