]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - lib/libgssapi/gss_delete_sec_context.3
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / lib / libgssapi / gss_delete_sec_context.3
1 .\" -*- nroff -*-
2 .\"
3 .\" Copyright (c) 2005 Doug Rabson
4 .\" All rights reserved.
5 .\"
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
8 .\" are met:
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.
14 .\"
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
25 .\" SUCH DAMAGE.
26 .\"
27 .\"     $FreeBSD$
28 .\"
29 .\" The following commands are required for all man pages.
30 .Dd January 26, 2010
31 .Dt GSS_DELETE_SEC_CONTEXT 3 PRM
32 .Os
33 .Sh NAME
34 .Nm gss_delete_sec_context
35 .Nd Discard a security context
36 .\" This next command is for sections 2 and 3 only.
37 .\" .Sh LIBRARY
38 .Sh SYNOPSIS
39 .In "gssapi/gssapi.h"
40 .Ft OM_uint32
41 .Fo gss_delete_sec_context
42 .Fa "OM_uint32 *minor_status"
43 .Fa "gss_ctx_id_t *context_handle"
44 .Fa "gss_buffer_t output_token"
45 .Fc
46 .Sh DESCRIPTION
47 Delete a security context.
48 .Fn gss_delete_sec_context
49 will delete the local data structures associated with the specified
50 security context,
51 and may generate an output_token,
52 which when passed to the peer
53 .Fn gss_process_context_token
54 will instruct it to do likewise.
55 If no token is required by the mechanism,
56 the GSS-API should set the length field of the output_token (if
57 provided) to zero.
58 No further security services may be obtained using the context
59 specified by
60 .Fa context_handle .
61 .Pp
62 In addition to deleting established security contexts,
63 .Fn gss_delete_sec_context
64 must also be able to delete "half-built" security contexts resulting
65 from an incomplete sequence of
66 .Fn gss_init_sec_context
67 /
68 .Fn gss_accept_sec_context
69 calls.
70 .Pp
71 The
72 .Fa output_token
73 parameter is retained for compatibility with version 1 of the GSS-API.
74 It is recommended that both peer applications invoke
75 .Fn gss_delete_sec_context
76 passing the value
77 .Dv GSS_C_NO_BUFFER
78 for the
79 .Fa output_token
80 parameter,
81 indicating that no token is required,
82 and that
83 .Fn gss_delete_sec_context
84 should simply delete local context data structures.
85 If the application does pass a valid buffer to
86 .Fn gss_delete_sec_context ,
87 mechanisms are encouraged to return a zero-length token,
88 indicating that no peer action is necessary,
89 and that no token should be transferred by the application.
90 .Sh PARAMETERS
91 .Bl -tag
92 .It minor_status
93 Mechanism specific status code.
94 .It context_handle
95 Context handle identifying context to delete.
96 After deleting the context,
97 the GSS-API will set this context handle to
98 .Dv GSS_C_NO_CONTEXT .
99 .It output_token
100 Token to be sent to remote application to instruct it to also delete
101 the context.
102 It is recommended that applications specify
103 .Dv GSS_C_NO_BUFFER
104 for this parameter,
105 requesting local deletion only.
106 If a buffer parameter is provided by the application,
107 the mechanism may return a token in it;
108 mechanisms that implement only local deletion should set the length
109 field of this token to zero to indicate to the application that no
110 token is to be sent to the peer.
111 .El
112 .Sh RETURN VALUES
113 .Bl -tag
114 .It GSS_S_COMPLETE
115 Successful completion
116 .It GSS_S_NO_CONTEXT
117 No valid context was supplied
118 .El
119 .Sh SEE ALSO
120 .Xr gss_process_context_token 3 ,
121 .Xr gss_init_sec_context 3 ,
122 .Xr gss_accept_sec_context 3
123 .Sh STANDARDS
124 .Bl -tag
125 .It RFC 2743
126 Generic Security Service Application Program Interface Version 2, Update 1
127 .It RFC 2744
128 Generic Security Service API Version 2 : C-bindings
129 .El
130 .Sh HISTORY
131 The
132 .Nm
133 function first appeared in
134 .Fx 7.0 .
135 .Sh AUTHORS
136 John Wray, Iris Associates
137 .Sh COPYRIGHT
138 Copyright (C) The Internet Society (2000).  All Rights Reserved.
139 .Pp
140 This document and translations of it may be copied and furnished to
141 others, and derivative works that comment on or otherwise explain it
142 or assist in its implementation may be prepared, copied, published
143 and distributed, in whole or in part, without restriction of any
144 kind, provided that the above copyright notice and this paragraph are
145 included on all such copies and derivative works.  However, this
146 document itself may not be modified in any way, such as by removing
147 the copyright notice or references to the Internet Society or other
148 Internet organizations, except as needed for the purpose of
149 developing Internet standards in which case the procedures for
150 copyrights defined in the Internet Standards process must be
151 followed, or as required to translate it into languages other than
152 English.
153 .Pp
154 The limited permissions granted above are perpetual and will not be
155 revoked by the Internet Society or its successors or assigns.
156 .Pp
157 This document and the information contained herein is provided on an
158 "AS IS" basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING
159 TASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING
160 BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION
161 HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF
162 MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.