gss_krb5_mic_build_sg(9)
π gss_krb5_mic_build_sg(9) π
okay so bestie, this is the gss_krb5_mic_build_sg(9) page from the Kernel API Manual β and it's literally Build scatterlist for MIC token operations energy. No cap, let's go π
β¨ NAME β¨
gss_krb5_mic_build_sgβ Build scatterlist for MIC token operations. That's the whole name, periodt π«Ά
π¦ SYNOPSIS π¦
here's the actual signature, bestie β copy it exactly:
int gss_krb5_mic_build_sg (const struct xdr_buf *body , void *cksum ,
unsigned int cksum_len , void *hdr , struct scatterlist *sg_head ,
struct scatterlist **sg_overflow );
π ARGUMENTS π
bodyβxdr_bufcontaining the message body. Main character message body, honestly.cksumβ pointer to checksum area in the token buffer.cksum_lenβ length of checksum area.hdrβ pointer to GSS token header.sg_headβ caller-provided scatterlist array; if more thanXDR_BUF_TO_SG_NENTSentries are needed, an overflow scatterlist is allocated and chained automatically. It handles the overflow so you don't have to, slay.sg_overflowβOUT: overflow scatterlist, caller mustkfree. Don't forget thekfree, bestie β that's your job. π
π₯ DESCRIPTION π₯
okay so per RFC 4121 Section 4.2.4, MIC token checksums cover the message body followed by the token header. The checksum output or received checksum occupies the first scatterlist entry. This layout cannot be constructed by xdr_buf_to_sg_alloc because the checksum area and the GSS header lie outside the xdr_buf.
Returns the number of scatterlist entries on success, or a negative errno on failure. So it either gives you a count or gives you an error β vibe check complete. π
π SEE ALSO π
- Kernel file
./net/sunrpc/auth_gss/gss_krb5_crypto.c gss_krb5_aead_encrypt(9)gss_krb5_aead_decrypt(9)
Go read these too, iykyk π
mwah π β big kiss from ./net/sunrpc/auth_gss, October 2026, on the gss_krb5_mic_build_sg(9) page. You ate that, fr fr. π«Άβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms