|| FreeBSD Library Functions Manual
create a security context using the RPCSEC_GSS protocol
RPC GSS-API Authentication Library (librpcsec_gss, -lrpcsec_gss)
#include < rpc/rpcsec_gss.h>
rpc_gss_seccreate( CLIENT *clnt, const char *principal, const char *mechanism, rpc_gss_service_t service, const char *qop, rpc_gss_options_req_t *options_req, rpc_gss_options_ret_t *options_ret);
DESCRIPTION This function is used to establish a security context between an application and a remote peer using the RPSEC_GSS protocol.
An RPC handle which is connected to the remote peer
The name of the service principal on the remote peer. For instance, a principal such as “firstname.lastname@example.org” might be used by an application which needs to contact an NFS server
The desired mechanism for this security context. The value of mechanism should be the name of one of the security mechanisms listed in /etc/gss/mech.
Type of service requested.
The default - typically the same as
RPC headers only are integrity protected by a checksum.
RPC headers and data are integrity protected by a checksum.
RPC headers are integrity protected by a checksum and data is encrypted.
Desired quality of protection or NULL for the default. Available values are listed in /etc/gss/qop
Extra security context options to be passed to the underlying GSS-API mechanism. Pass
NULL to supply default values.
Various values returned by the underlying GSS-API mechanism. Pass
NULL if these values are not required.
RETURN VALUES If the security context was created successfully, a pointer to an
AUTH structure that represents the context is returned. To use this security context for subsequent RPC calls, set
clnt->cl_auth to this value.
rpc_gss_seccreate function first appeared in
AUTHORS This manual page was written by