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_MECH_TO_OID 3NSL "Feb 5, 2002"
8 rpc_gss_mech_to_oid, rpc_gss_qop_to_num \- map mechanism, QOP strings to
13 #include <rpc/rpcsec_gss.h>
15 \fBbool_t\fR \fBrpc_gss_mech_to_oid\fR(\fBcharc\fR\fI*mech\fR, \fBrpc_gss_OIDc\fR\fI*oid\fR);
20 \fBbool_t\fR \fBrpc_gss_qop_to_num\fR(\fBchar\fR \fI*qop\fR, \fBchar\fR \fI*mech\fR, \fBu_int\fR \fI*num\fR);
26 Because in-kernel RPC routines use non-string values for mechanism and Quality
27 of Protection (QOP), these routines exist to map strings for these attributes
28 to their non-string counterparts. (The non-string values for QOP and
29 mechanism are also found in the \fB/etc/gss/qop\fR and \fB/etc/gss/mech\fR
30 files, respectively.) \fBrpc_gss_mech_to_oid()\fR takes a string representing a
31 mechanism, as well as a pointer to a \fBrpc_gss_OID\fR object identifier
32 structure. It then gives this structure values corresponding to the indicated
33 mechanism, so that the application can now use the OID directly with RPC
34 routines. \fBrpc_gss_qop_to_num()\fR does much the same thing, taking strings
35 for QOP and mechanism and returning a number.
39 Information on \fBRPCSEC_GSS\fR data types for parameters may be found on the
40 \fBrpcsec_gss\fR(3NSL) man page.
47 An ASCII string representing the security mechanism in use. Valid strings may
48 be found in the \fB/etc/gss/mech\fR file.
57 An object identifier of type \fBrpc_gss_OID\fR, whose elements are usable by
58 kernel-level RPC routines.
67 This is an ASCII string which sets the quality of protection (QOP) for the
68 session. Appropriate values for this string may be found in the file
78 The non-string value for the QOP.
84 Both functions return TRUE if they are successful, FALSE otherwise.
89 \fB\fB/etc/gss/mech\fR \fR
92 File containing valid security mechanisms
98 \fB\fB/etc/gss/qop\fR \fR
101 File containing valid QOP values
107 See \fBattributes\fR(5) for descriptions of the following attributes:
115 ATTRIBUTE TYPE ATTRIBUTE VALUE
123 \fBrpc\fR(3NSL), \fBrpc_gss_get_error\fR(3NSL), \fBrpc_gss_get_mechanisms\fR(3NSL), \fBrpcsec_gss\fR(3NSL), \fBmech\fR(4), \fBqop\fR(4), \fBattributes\fR(5)
126 \fIONC+ Developer\&'s Guide\fR