RPC_GSS_MAX_DATA_LENGTH(3)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1

πŸ’– NAME πŸ’–

okay so bestie, this is the RPC_GSS_MAX_DATA_LENGTH(3) page from the Library Functions Manual β€” and it’s all about rpc_gss_max_data_length, which calculates maximum data size. No cap, that’s the whole flex. πŸ’…

πŸ“š LIBRARY πŸ“š

This icon lives in the RPC GSS-API Authentication Library β€” that’s librpcsec_gss, and you link it with -lrpcsec_gss. Slay. ✨

🌸 SYNOPSIS 🌸

#include <rpc/rpcsec_gss.h>

int
rpc_gss_max_data_length(AUTH *auth, int max_tp_unit_len);

🫢 DESCRIPTION 🫢

So here’s the tea, bestie: this function calculates the maximum message size that will fit into a packet of size max_tp_unit_len, given the current service and QoP setting. It’s literally giving β€œwill my message fit in this transport packet?” energy. πŸ’–

πŸŽ€ PARAMETERS πŸŽ€

  • auth β€” a handle to a RPCSEC_GSS security context. Like, your little security-context bestie.
  • max_tp_unit_len β€” the maximum packet size of the underlying transport protocol. The packet’s size limit, periodt.

⭐ RETURN VALUES ⭐

It returns the maximum message size that can be encoded. That’s the number you get back, bestie. ✨

🌈 SEE ALSO 🌈

πŸ¦‹ HISTORY πŸ¦‹

The rpc_gss_max_data_length function first appeared in FreeBSD 8.0. Iconic behavior from the FreeBSD 8.0 era. πŸ‘‘

πŸ’œ AUTHORS πŸ’œ

This manual page was written by Doug Rabson <dfr@FreeBSD.org>. Shoutout to Doug, fr fr. 🫢


Cute sign-off time: this cutie was brought to you by Debian, dated January 26, 2010. Byeee πŸ’–πŸ¦‹

πŸ“¦ where this page comes from