2 .\" Copyright (c) 2007, 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_INQUIRE_CRED_BY_MECH 3GSS "Aug 15, 2007"
8 gss_inquire_cred_by_mech \- obtain per-mechanism information about a credential
12 \fBcc\fR [ \fIflag\fR... ] \fIfile\fR... \fB-lgss\fR [ \fIlibrary\fR... ]
13 #include <gssapi/gssapi.h>
15 \fBOM_uint32\fR \fBgss_inquire_cred_by_mech\fR(\fBOM_uint32 *\fR\fIminor_status\fR,
16 \fBconst gss_cred_id_t\fR \fIcred_handle\fR,\fBconst gss_OID\fR \fImech_type\fR,
17 \fBgss_name_t *\fR\fIname\fR, \fBOM_uint32 *\fR\fIinitiator_lifetime\fR,
18 \fBOM_uint32 *\fR\fIacceptor_lifetime\fR, \fBgss_cred_usage_t *\fR\fIcred_usage\fR);
25 \fB\fIacceptor_lifetime\fR\fR
28 The number of seconds that the credential is capable of accepting security
29 contexts under the specified mechanism. If the credential can no longer be used
30 to accept contexts, or if the credential usage for this mechanism is
31 \fBGSS_C_INITIATE\fR, this parameter will be set to \fB0\fR. Specify \fBNULL\fR
32 if this parameter is not required.
38 \fB\fIcred_handle\fR\fR
41 A handle that refers to the target credential. Specify
42 \fBGSS_C_NO_CREDENTIAL\fR to inquire about the default initiator principal.
48 \fB\fIcred_usage\fR\fR
51 How the credential may be used with the specified mechanism. The
52 \fIcred_usage\fR parameter may contain one of the following values:
53 \fBGSS_C_INITIATE\fR, \fBGSS_C_ACCEPT\fR, or \fBGSS_C_BOTH\fR. Specify
54 \fBNULL\fR if this parameter is not required.
60 \fB\fIinitiator_lifetime\fR\fR
63 The number of seconds that the credential is capable of initiating security
64 contexts under the specified mechanism. If the credential can no longer be used
65 to initiate contexts, or if the credential usage for this mechanism is
66 \fBGSS_C_ACCEPT\fR, this parameter will be set to \fB0\fR. Specify \fBNULL\fR
67 if this parameter is not required.
76 The mechanism for which the information should be returned.
82 \fB\fIminor_status\fR\fR
85 A mechanism specific status code.
94 The name whose identity the credential asserts. Any storage associated with
95 this \fIname\fR must be freed by the application after use by a call to
96 \fBgss_release_name\fR(3GSS).
102 The \fBgss_inquire_cred_by_mech()\fR function obtains per-mechanism information
107 The \fBgss_inquire_cred_by_mech()\fR function can return the following status
112 \fB\fBGSS_S_COMPLETE\fR\fR
115 Successful completion.
121 \fB\fBGSS_S_CREDENTIALS_EXPIRED\fR\fR
124 The credentials cannot be added because they have expired.
130 \fB\fBGSS_S_DEFECTIVE_CREDENTIAL\fR\fR
133 The referenced credentials are invalid.
139 \fB\fBGSS_S_FAILURE\fR\fR
142 The underlying mechanism detected an error for which no specific \fBGSS\fR
143 status code is defined. The mechanism-specific status code reported by means
144 of the \fIminor_status\fR parameter details the error condition.
150 \fB\fBGSS_S_NO_CRED\fR\fR
153 The referenced credentials cannot be accessed.
159 \fB\fBGSS_S_UNAVAILABLE\fR\fR
162 The \fBgss_inquire_cred_by_mech()\fR function is not available for the
163 specified mechanism type.
169 See \fBattributes\fR(5) for descriptions of the following attributes:
177 ATTRIBUTE TYPE ATTRIBUTE VALUE
185 \fBgss_release_name\fR(3GSS), \fBattributes\fR(5)
188 \fISolaris Security for Developers Guide\fR