# rpc_gss_max_data_length(3t) - man - phpman

RPC_GSS_MAX_DATA_LENG... BSD Library Functions Manual RPC_GSS_MAX_DATA_LENG...

## NAME
     **rpc**___**gss**___**max**___**data**___**length** — calculate maximum data size

## SYNOPSIS
     **#include** **<rpc/rpcsec**___**gss.h>**

     _int_
     **rpc**___**gss**___**max**___**data**___**length**(_AUTH_ _*auth_, _int_ _max_tp_unit_len_);

## DESCRIPTION
     Calculate the maximum message size that will fit into a packet of size _max_tp_unit_len_, given
     the current service and QoP setting.

## PARAMETERS
     auth             A handle to a RPCSEC_GSS security context

     max_tp_unit_len  Maximum packet size of the underlying transport protocol

## RETURN VALUES
     The maximum message size that can be encoded

## AVAILABILITY
     The **rpc**___**gss**___**max**___**data**___**length**() function is part of libtirpc.

## SEE ALSO
     [rpc(3)](https://www.chedong.com/phpMan.php/man/rpc/3/markdown), [gssapi(3)](https://www.chedong.com/phpMan.php/man/gssapi/3/markdown), [rpcsec_gss(3)](https://www.chedong.com/phpMan.php/man/rpcsecgss/3/markdown)

## AUTHORS
     This manual page was written by Doug Rabson <<dfr@FreeBSD.org>>.

BSD                            January 26, 2010                            BSD
