1
.\" Copyright (C) 2004 International Business Machines Corporation
2
.\" Written by Megan Schneider based on the Trusted Computing Group Software Stack Specification Version 1.1 Golden
12
.de Sp \" Vertical space (when we can't use .PP)
18
.ie \\n(.$>=3 .ne \\$3
22
.TH "Tspi_Policy_AssignToObject" 3 "2004-05-25" "TSS 1.1"
24
TCG Software Stack Developers Reference
26
Tspi_Policy_AssignToObject \- assign a policy to an object
31
.B #include <tss/platform.h>
32
.B #include <tss/tcpa_defines.h>
33
.B #include <tss/tcpa_typedef.h>
34
.B #include <tss/tcpa_struct.h>
35
.B #include <tss/tss_typedef.h>
36
.B #include <tss/tss_structs.h>
37
.B #include <tss/tspi.h>
39
.BI "TSS_RESULT Tspi_Policy_AssignToObject(TSS_HPOLICY " hPolicy ", TSS_HOBJECT " hObject ");"
47
\fBTspi_Policy_AssignToObject\fR assigns a given object
48
to a certain policy. The object then uses its assigned policy to process
49
an authorized TPM command. When each new object is initialized, it is
50
assigned to the default policy, which is created when a context object
51
is created. When an object is assigned to a policy, a reference is added
52
to the list of assigned objects stored in the policy, and a reference
53
to the policy is stored in the object by internal object functions.
58
The \fIhPolicy\fR parameter is the handle of the policy object to be
61
The \fIhObject\fR parameter is the object that will be assigned to
66
\fBTspi_Policy_AssignToObject\fR returns TSS_SUCCESS on success, otherwise
67
one of the following values is returned:
69
.SM TSS_E_INVALID_HANDLE
70
\fIhPolicy\fR is not a valid handle.
73
.SM TSS_E_INTERNAL_ERROR
74
An internal SW error has been detected.
79
\fBTspi_Policy_AssignToObject\fR conforms to the Trusted Computing Group
80
Software Specification version 1.1 Golden
85
\fBTspi_Policy_SetSecret\fR(3), \fBTspi_Policy_FlushSecret\fR(3).