2 .\" Copyright (C) 2001, 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_MECHANISMS 3NSL "Jun 29, 2001"
8 rpc_gss_get_mechanisms, rpc_gss_get_mech_info, rpc_gss_get_versions,
9 rpc_gss_is_installed \- get information on mechanisms and RPC version
13 #include <rpc/rpcsec_gss.h>
15 \fBchar **\fR\fBrpc_gss_get_mechanisms\fR(\fB\fR\fI\fR);
20 \fBchar **\fR\fBrpc_gss_get_mech_info\fR(\fBchar *\fR\fImech\fR, \fBrpc_gss_service_t *\fR\fIservice\fR);
25 \fBbool_t\fR \fBrpc_gss_get_versions\fR(\fBu_int *\fR\fIvers_hi\fR, \fBu_int *\fR\fIvers_lo\fR);
30 \fBbool_t rpc_gss_is\fR \fBinstalled\fR(\fBchar *\fR\fImech\fR);
36 These "convenience functions" return information on available security
37 mechanisms and versions of \fBRPCSEC_GSS\fR .
41 \fB\fBrpc_gss_get_mechanisms()\fR \fR
44 Returns a list of supported security mechanisms as a null-terminated list of
51 \fB\fBrpc_gss_get_mech_info()\fR \fR
54 Takes two arguments: an ASCII string representing a mechanism type, for
55 example, \fBkerberosv5\fR, and a pointer to a \fBrpc_gss_service_t\fR enum.
56 \fBrpc_gss_get_mech_info()\fR will return \fBNULL\fR upon error or if no
57 \fB/etc/gss/qop\fR file is present. Otherwise, it returns a null-terminated
58 list of character strings of supported Quality of Protections (QOPs) for this
59 mechanism. \fBNULL\fR or empty list implies only that the default QOP is
60 available and can be specified to routines that need to take a QOP string
61 parameter as NULL or as an empty string.
67 \fB\fBrpc_gss_get_versions()\fR \fR
70 Returns the highest and lowest versions of \fBRPCSEC_GSS\fR supported.
76 \fB\fBrpc_gss_is_installed()\fR \fR
79 Takes an ASCII string representing a mechanism, and returns \fBTRUE\fR if the
80 mechanism is installed.
86 Information on \fBRPCSEC_GSS\fR data types for parameters may be found on the
87 \fBrpcsec_gss\fR(3NSL) man page.
94 An ASCII string representing the security mechanism in use. Valid strings may
95 also be found in the \fB/etc/gss/mech\fR file.
104 A pointer to a \fBrpc_gss_service_t\fR enum, representing the current security
105 service (privacy, integrity, or none).
118 The highest and lowest versions of \fBRPCSEC_GSS\fR supported.
125 \fB\fB/etc/gss/mech\fR \fR
128 File containing valid security mechanisms
134 \fB\fB/etc/gss/qop\fR \fR
137 File containing valid QOP values
143 See \fBattributes\fR(5) for descriptions of the following attributes:
151 ATTRIBUTE TYPE ATTRIBUTE VALUE
159 \fBrpc\fR(3NSL),\fBrpcsec_gss\fR(3NSL), \fBmech\fR(4), \fBqop\fR(4), \fBattributes\fR(5)
162 \fIONC+ Developer\&'s Guide\fR
165 Linn, J. \fIRFC 2743, Generic Security Service Application Program Interface Version 2, Update 1\fR. Network Working Group. January 2000.