rpc_gss_seccreate(3t)

rpc_gss_seccreate3t

Create a security context using the rpcsec_gss protocol

Usage

#include <rpc/rpcsec_gss.h>

AUTH *

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);

Overview

This function is used to establish a security context between an application and a remote peer using the RPSEC_GSS protocol.

Parameters

clnt

An RPC handle which is connected to the remote peer

principal

The name of the service principal on the remote peer. For instance, a principal such as "[email protected]" might be used by an application which needs to contact an NFS server

mechanism

The name of the GSS_API mechanism to use for the new security context. "kerberos_v5" is currently the only supported mechanism.

service

Type of service requested.

rpc_gss_svc_default

The default - typically the same as rpc_gss_svc_none.

rpc_gss_svc_none

RPC headers only are integrity protected by a checksum.

rpc_gss_svc_integrity

RPC headers and data are integrity protected by a checksum.

rpc_gss_svc_privacy

RPC headers are integrity protected by a checksum and data is encrypted.

qop

The name of the Quality of Protection to use for the new security context, or NULL to use the default QOP. "GSS_C_QOP_DEFAULT" is currently the only supported QOP.

options_req

Extra security context options to be passed to the underlying GSS-API mechanism. Pass NULL to supply default values.

options_ret

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.

Releases

Unchanged in 5 releases since Debian 10 (Buster).

  1. 10–Arch

Availability

The rpc_gss_seccreate() function is part of libtirpc.

Authors

This manual page was written by Doug Rabson ⟨[email protected]⟩.

From libtirpc 1.3.8-1 in Arch Linux 2026-11-07. Parsed by carta from the page's mdoc source.