Current File : //usr/share/man/man3nsl/rpc_gss_set_defaults.3nsl
'\" te
.\" Copyright (c) 2002, 2011, Oracle and/or its affiliates. All rights reserved.
.TH rpc_gss_set_defaults 3NSL "22 Aug 2011" "SunOS 5.11" "Networking Services Library Functions"
.SH NAME
rpc_gss_set_defaults \- change service, QOP for a session
.SH SYNOPSIS
.LP
.nf
#include <rpc/rpcsec_gss.h> 

\fBbool_t\fR \fBrpc_gss_set_defaults\fR(\fBAUTH\fR \fI*auth\fR, \fBrpc_gss_service_t\fR \fIservice\fR, \fBchar\fR \fI*qop\fR);
.fi

.SH DESCRIPTION
.sp
.LP
\fBrpc_gss_set_defaults()\fR 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).
.SH PARAMETERS
.sp
.LP
Information on \fBRPCSEC_GSS\fR data types for parameters may be found on the \fBrpcsec_gss\fR(3NSL) man page.
.sp
.ne 2
.mk
.na
\fB\fIauth\fR \fR
.ad
.RS 12n
.rt  
An RPC authentication handle returned by \fBrpc_gss_seccreate()\fR). 
.RE

.sp
.ne 2
.mk
.na
\fB\fIservice\fR \fR
.ad
.RS 12n
.rt  
An enum of type \fBrpc_gss_service_t\fR, representing one of the following types of security service:  authentication, privacy, integrity, or none.
.RE

.sp
.ne 2
.mk
.na
\fB\fIqop\fR \fR
.ad
.RS 12n
.rt  
A string representing Quality of Protection.  Valid strings may be found in the file \fB/etc/gss/qop\fR or by using \fBrpc_gss_get_mech_info()\fR. 
.RE

.SH RETURN VALUES
.sp
.LP
\fBrpc_gss_set_svc_name()\fR returns  TRUE if it is successful; otherwise, use  \fBrpc_gss_get_error()\fR to get the error associated with the failure.
.SH FILES
.sp
.ne 2
.mk
.na
\fB\fB/etc/gss/qop\fR \fR
.ad
.RS 17n
.rt  
File containing valid QOPs
.RE

.SH ATTRIBUTES
.sp
.LP
See \fBattributes\fR(5) for descriptions of the following attributes:
.sp

.sp
.TS
tab() box;
cw(2.75i) |cw(2.75i) 
lw(2.75i) |lw(2.75i) 
.
ATTRIBUTE TYPEATTRIBUTE VALUE
_
Availabilitysystem/library/security/rpcsec
_
MT-LevelMT-Safe
.TE

.SH SEE ALSO
.sp
.LP
\fBrpc\fR(3NSL), \fBrpc_gss_get_mech_info\fR(3NSL), \fBrpcsec_gss\fR(3NSL), \fBqop\fR(4), \fBattributes\fR(5) 
.sp
.LP
\fIONC+ RPC Developer\&'s Guide\fR
.sp
.LP
Linn, J. \fIRFC 2078, Generic Security Service Application Program Interface, Version 2\fR. Network Working Group. January 1997.