2 .\" Copyright (C) 2003, Sun Microsystems, Inc. All Rights Reserved
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH GSS_VERIFY_MIC 3GSS "Jan 15, 2003"
8 gss_verify_mic \- verify integrity of a received message
12 \fBcc\fR [ \fIflag\fR... ] \fIfile\fR... \fB-lgss\fR [ \fIlibrary\fR... ]
13 #include <gssapi/gssapi.h>
15 \fBOM_uint32\fR \fBgss_verify_mic\fR(\fBOM_uint32 *\fR\fIminor_status\fR,
16 \fBconst gss_ctx_id_t\fR \fIcontext_handle\fR, \fBconst gss_buffer_t\fR \fImessage_buffer\fR,
17 \fBconst gss_buffer_t\fR \fItoken_buffer\fR, \fBgss_qop_t *\fR\fIqop_state\fR);
23 The \fBgss_verify_mic()\fR function verifies that a cryptographic \fBMIC\fR,
24 contained in the token parameter, fits the supplied message. The
25 \fIqop_state\fR parameter allows a message recipient to determine the strength
26 of protection that was applied to the message.
29 Since some application-level protocols may wish to use tokens emitted by
30 \fBgss_wrap\fR(3GSS) to provide secure framing, the \fBGSS-API\fR supports the
31 calculation and verification of \fBMIC\fRs over zero-length messages.
35 The parameter descriptions for \fBgss_verify_mic()\fR follow:
39 \fB\fIminor_status\fR\fR
42 The status code returned by the underlying mechanism.
48 \fB\fIcontext_handle\fR\fR
51 Identifies the context on which the message arrived.
57 \fB\fImessage_buffer\fR\fR
60 The message to be verified.
66 \fB\fItoken_buffer\fR\fR
69 The token associated with the message.
78 Specifies the quality of protection gained from the \fBMIC\fR. Specify
79 \fBNULL\fR if this parameter is not required.
85 \fBgss_verify_mic()\fR may return the following status codes:
89 \fB\fBGSS_S_COMPLETE\fR\fR
92 Successful completion.
98 \fB\fBGSS_S_DEFECTIVE_TOKEN\fR\fR
101 The token failed consistency checks.
107 \fB\fBGSS_S_BAD_SIG\fR\fR
110 The \fBMIC\fR was incorrect.
116 \fB\fBGSS_S_DUPLICATE_TOKEN\fR\fR
119 The token was valid and contained a correct \fBMIC\fR for the message, but it
120 had already been processed.
126 \fB\fBGSS_S_OLD_TOKEN\fR\fR
129 The token was valid and contained a correct \fBMIC\fR for the message, but it
130 is too old to check for duplication.
136 \fB\fBGSS_S_UNSEQ_TOKEN\fR\fR
139 The token was valid and contained a correct \fBMIC\fR for the message, but it
140 has been verified out of sequence; a later token has already been received.
146 \fB\fBGSS_S_GAP_TOKEN\fR\fR
149 The token was valid and contained a correct \fBMIC\fR for the message, but it
150 has been verified out of sequence; an earlier expected token has not yet been
157 \fB\fBGSS_S_CONTEXT_EXPIRED\fR\fR
160 The context has already expired.
166 \fB\fBGSS_S_NO_CONTEXT\fR\fR
169 The \fIcontext_handle\fR parameter did not identify a valid context.
175 \fB\fBGSS_S_FAILURE\fR\fR
178 The underlying mechanism detected an error for which no specific \fBGSS\fR
179 status code is defined. The mechanism-specific status code reported by means
180 of the \fIminor_status\fR parameter details the error condition.
186 See \fBattributes\fR(5) for descriptions of the following attributes:
194 ATTRIBUTE TYPE ATTRIBUTE VALUE
202 \fBgss_wrap\fR(3GSS), \fBattributes\fR(5)
205 \fISolaris Security for Developers Guide\fR