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_VERIFY_MIC 3 PRM
34 .Nd Check a MIC against a message; verify integrity of a received message
35 .\" This next command is for sections 2 and 3 only.
41 .Fa "OM_uint32 *minor_status"
42 .Fa "const gss_ctx_id_t context_handle"
43 .Fa "const gss_buffer_t message_buffer"
44 .Fa "const gss_buffer_t token_buffer"
45 .Fa "gss_qop_t *qop_state"
49 .Fa "OM_uint32 *minor_status"
50 .Fa "gss_ctx_id_t context_handle"
51 .Fa "gss_buffer_t message_buffer"
52 .Fa "gss_buffer_t token_buffer"
53 .Fa "gss_qop_t *qop_state"
56 Verifies that a cryptographic MIC,
57 contained in the token parameter,
58 fits the supplied message.
61 parameter allows a message recipient to determine the strength of
62 protection that was applied to the message.
64 Since some application-level protocols may wish to use tokens emitted
67 to provide "secure framing",
68 implementations must support the calculation and verification of MICs
69 over zero-length messages.
73 routine is an obsolete variant of
75 It is provided for backwards
76 compatibility with applications using the GSS-API V1 interface.
77 A distinct entrypoint (as opposed to #define) is provided,
78 both to allow GSS-API V1 applications to link
79 and to retain the slight parameter type differences between the
80 obsolete versions of this routine and its current form.
82 .Bl -tag -width ".It context_handle"
84 Mechanism specific status code.
86 Identifies the context on which the message arrived.
88 Message to be verified.
90 Token associated with message.
92 Quality of protection gained from MIC.
98 .Bl -tag -width ".It GSS_S_CONTEXT_EXPIRED"
100 Successful completion
101 .It GSS_S_DEFECTIVE_TOKEN
102 The token failed consistency checks
104 The MIC was incorrect
105 .It GSS_S_DUPLICATE_TOKEN
107 and contained a correct MIC for the message,
108 but it had already been processed
111 and contained a correct MIC for the message,
112 but it is too old to check for duplication
113 .It GSS_S_UNSEQ_TOKEN
115 and contained a correct MIC for the message,
116 but has been verified out of sequence;
117 a later token has already been received.
120 and contained a correct MIC for the message,
121 but has been verified out of sequence;
122 an earlier expected token has not yet been received
123 .It GSS_S_CONTEXT_EXPIRED
124 The context has already expired
126 The context_handle parameter did not identify a valid context
131 .Bl -tag -width ".It RFC 2743"
133 Generic Security Service Application Program Interface Version 2, Update 1
135 Generic Security Service API Version 2 : C-bindings
140 function first appeared in
143 John Wray, Iris Associates
145 Copyright (C) The Internet Society (2000). All Rights Reserved.
147 This document and translations of it may be copied and furnished to
148 others, and derivative works that comment on or otherwise explain it
149 or assist in its implementation may be prepared, copied, published
150 and distributed, in whole or in part, without restriction of any
151 kind, provided that the above copyright notice and this paragraph are
152 included on all such copies and derivative works. However, this
153 document itself may not be modified in any way, such as by removing
154 the copyright notice or references to the Internet Society or other
155 Internet organizations, except as needed for the purpose of
156 developing Internet standards in which case the procedures for
157 copyrights defined in the Internet Standards process must be
158 followed, or as required to translate it into languages other than
161 The limited permissions granted above are perpetual and will not be
162 revoked by the Internet Society or its successors or assigns.
164 This document and the information contained herein is provided on an
165 "AS IS" basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING
166 TASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING
167 BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION
168 HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF
169 MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.