xref: /titanic_52/usr/src/man/man3nsl/rpc_gss_set_defaults.3nsl (revision 8682d1ef2a0960ed5a9f05b9448eaa3e68ac931f)
te
Copyright (C) 2002, Sun Microsystems, Inc. All Rights Reserved
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.
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.
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]
rpc_gss_set_defaults 3NSL "5 Feb 2002" "SunOS 5.11" "Networking Services Library Functions"
NAME
rpc_gss_set_defaults - change service, QOP for a session
SYNOPSIS

#include <rpc/rpcsec_gss.h> 

bool_t rpc_gss_set_defaults(AUTH *auth, rpc_gss_service_t service, char *qop);
DESCRIPTION

rpc_gss_set_defaults() allows an application to change the service (privacy, integrity, authentication, or none) and Quality of Protection (QOP) for a transfer session. New values apply to the rest of the session (unless changed again).

PARAMETERS

Information on RPCSEC_GSS data types for parameters may be found on the rpcsec_gss(3NSL) man page.

auth

An RPC authentication handle returned by rpc_gss_seccreate()).

service

An enum of type rpc_gss_service_t, representing one of the following types of security service: authentication, privacy, integrity, or none.

qop

A string representing Quality of Protection. Valid strings may be found in the file /etc/gss/qop or by using rpc_gss_get_mech_info().

RETURN VALUES

rpc_gss_set_svc_name() returns TRUE if it is successful; otherwise, use rpc_gss_get_error() to get the error associated with the failure.

FILES

/etc/gss/qop

File containing valid QOPs

ATTRIBUTES

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPEATTRIBUTE VALUE
MT-LevelMT-Safe
.SH SEE ALSO

rpc(3NSL), rpc_gss_get_mech_info(3NSL), rpcsec_gss(3NSL), qop(4), attributes(5)

ONC+ Developer's Guide

Linn, J. RFC 2078, Generic Security Service Application Program Interface, Version 2. Network Working Group. January 1997.