3 .\" Copyright (c) 2005 Doug Rabson
4 .\" All rights reserved.
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\" notice, this list of conditions and the following disclaimer in the
13 .\" documentation and/or other materials provided with the distribution.
15 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
16 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
19 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 .\" The following commands are required for all man pages.
29 .Dt GSS_INQUIRE_CONTEXT 3 PRM
32 .Nm gss_inquire_context
33 .Nd Obtain information about a security context
34 .\" This next command is for sections 2 and 3 only.
39 .Fo gss_inquire_context
40 .Fa "OM_uint32 *minor_status"
41 .Fa "const gss_ctx_id_t context_handle"
42 .Fa "gss_name_t *src_name"
43 .Fa "gss_name_t *targ_name"
44 .Fa "OM_uint32 *lifetime_rec"
45 .Fa "gss_OID *mech_type"
46 .Fa "OM_uint32 *ctx_flags"
47 .Fa "int *locally_initiated"
51 Obtains information about a security context.
52 The caller must already have obtained a handle that refers to the
54 although the context need not be fully established.
56 .Bl -tag -width ".It locally_initiated"
58 Mechanism specific status code.
60 A handle that refers to the security context.
62 The name of the context initiator.
63 If the context was established using anonymous authentication,
64 and if the application invoking
65 .Fn gss_inquire_context
66 is the context acceptor,
67 an anonymous name will be returned.
68 Storage associated with this name must be freed by the application
69 after use with a call to
70 .Fn gss_release_name .
75 The name of the context acceptor.
76 Storage associated with this name must be freed by the application
77 after use with a call to
78 .Fn gss_release_name .
79 If the context acceptor did not authenticate itself,
80 and if the initiator did not specify a target name in its call to
81 .Fn gss_init_sec_context ,
89 The number of seconds for which the context will remain valid.
90 If the context has expired,
91 this parameter will be set to zero.
92 If the implementation does not support context expiration,
100 The security mechanism providing the context.
101 The returned OID will be a pointer to static storage that should be
102 treated as read-only by the application;
103 in particular the application should not attempt to free it.
108 Contains various independent flags,
109 each of which indicates that the context supports
110 (or is expected to support, if
113 a specific service option.
114 If not needed, specify
116 Symbolic names are provided for each flag,
117 and the symbolic names corresponding to the required flags should be
118 logically-ANDed with the
120 value to test whether a given option is supported by the context.
124 .Bl -tag -width "False"
126 Credentials were delegated from the initiator to the acceptor.
128 No credentials were delegated.
130 .It GSS_C_MUTUAL_FLAG
131 .Bl -tag -width "False"
133 The acceptor was authenticated to the initiator.
135 The acceptor did not authenticate itself.
137 .It GSS_C_REPLAY_FLAG
138 .Bl -tag -width "False"
140 Replay of protected messages will be detected.
142 Replayed messages will not be detected.
144 .It GSS_C_SEQUENCE_FLAG
145 .Bl -tag -width "False"
147 Out-of-sequence protected messages will be detected.
149 Out-of-sequence messages will not be detected.
152 .Bl -tag -width "False"
154 Confidentiality service may be invoked by calling
158 No confidentiality service
163 will provide message encapsulation,
164 data-origin authentication and integrity services only.
167 .Bl -tag -width "False"
169 Integrity service may be invoked by calling either
175 Per-message integrity service unavailable.
178 .Bl -tag -width "False"
180 The initiator's identity will not be revealed to the acceptor.
183 parameter (if requested) contains an anonymous internal name.
185 The initiator has been authenticated normally.
187 .It GSS_C_PROT_READY_FLAG
188 .Bl -tag -width "False"
191 (as specified by the states of the
194 .Dv GSS_C_INTEG_FLAG )
195 are available for use.
198 (as specified by the states of the
201 .Dv GSS_C_INTEG_FLAG )
202 are available only if the context is fully established
205 parameter is non-zero).
208 .Bl -tag -width "False"
210 The security context may be transferred to other processes via a call to
211 .Fn gss_export_sec_context .
213 The security context is not transferable.
216 .It locally_initiated
217 Non-zero if the invoking application is the context initiator.
222 Non-zero if the context is fully established;
223 Zero if a context-establishment token is expected from the peer
230 .Bl -tag -width ".It GSS_S_NO_CONTEXT"
232 Successful completion
234 The referenced context could not be accessed
237 .Xr gss_export_sec_context 3 ,
239 .Xr gss_init_sec_context 3 ,
240 .Xr gss_release_name 3 ,
243 .Bl -tag -width ".It RFC 2743"
245 Generic Security Service Application Program Interface Version 2, Update 1
247 Generic Security Service API Version 2 : C-bindings
252 function first appeared in
255 John Wray, Iris Associates
257 Copyright (C) The Internet Society (2000). All Rights Reserved.
259 This document and translations of it may be copied and furnished to
260 others, and derivative works that comment on or otherwise explain it
261 or assist in its implementation may be prepared, copied, published
262 and distributed, in whole or in part, without restriction of any
263 kind, provided that the above copyright notice and this paragraph are
264 included on all such copies and derivative works. However, this
265 document itself may not be modified in any way, such as by removing
266 the copyright notice or references to the Internet Society or other
267 Internet organizations, except as needed for the purpose of
268 developing Internet standards in which case the procedures for
269 copyrights defined in the Internet Standards process must be
270 followed, or as required to translate it into languages other than
273 The limited permissions granted above are perpetual and will not be
274 revoked by the Internet Society or its successors or assigns.
276 This document and the information contained herein is provided on an
277 "AS IS" basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING
278 TASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING
279 BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION
280 HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF
281 MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.