2 .\" Copyright (C) 2002, 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 RPC_GSS_GET_ERROR 3NSL "Feb 5, 2002"
8 rpc_gss_get_error \- get error codes on failure
12 #include <rpc/rpcsec_gss.h>
14 \fBbool_t\fR \fBrpc_gss_get_error\fR(\fBrpc_gss_error_t\fR\fI*error\fR);
20 \fBrpc_gss_get_error()\fR fetches an error code when an \fBRPCSEC_GSS\fR
24 \fBrpc_gss_get_error()\fR uses a \fBrpc_gss_error_t\fR structure of the
30 int rpc_gss_error; \fIRPCSEC_GSS error\fR
31 int system_error; \fIsystem error\fR
38 Currently the only error codes defined for this function are
42 #define RPC_GSS_ER_SUCCESS 0 /* no error */
43 #define RPC_GSS_ER_SYSTEMERROR 1 /* system error */
50 Information on \fBRPCSEC_GSS\fR data types for parameters may be found on the
51 \fBrpcsec_gss\fR(3NSL) man page.
58 A \fBrpc_gss_error_t\fR structure. If the \fBrpc_gss_error\fR field is equal
59 to \fBRPC_GSS_ER_SYSTEMERROR,\fR the \fBsystem_error\fR field will be set to
60 the value of \fBerrno\fR.
66 Unless there is a failure indication from an invoked \fBRPCSEC_GSS\fR function,
67 \fBrpc_gss_get_error()\fR does not set \fBerror\fR to a meaningful value.
71 See \fBattributes\fR(5) for descriptions of the following attributes:
79 ATTRIBUTE TYPE ATTRIBUTE VALUE
87 \fBperror\fR(3C), \fBrpc\fR(3NSL), \fBrpcsec_gss\fR(3NSL), \fBattributes\fR(5)
90 \fIONC+ Developer\&'s Guide\fR
93 Linn, J. \fIRFC 2078, Generic Security Service Application Program Interface, Version 2\fR. Network Working Group. January 1997.