gss_encapsulate_token(3)
π gss_encapsulate_token β bestie edition π
okay so like, hi!! welcome to gss_encapsulate_token(3), a lil page from the gss manual (that's section 3 of the gss docs, mwah). this is the API function that slaps a header on your token so everybody knows what's up. let's get into it π
β¨ NAME β¨
gss_encapsulate_token β API function. yes that's it. she's an API function and she's iconic for it π
πΈ SYNOPSIS πΈ
#include <gss.h>
extern OM_uint32 gss_encapsulate_token(gss_const_buffer_t input_token,
gss_const_OID token_oid, gss_buffer_t output_token);
look at her go π¦
π«Ά ARGUMENTS π«Ά
gss_const_buffer_t input_tokenβ (buffer, opaque, read) the buffer holding your GSS-API context token data. it'sread-only bestie, we're just looking, not touching πgss_const_OID token_oidβ (Object ID, read) the object identifier of the token. that's the OID, the little name-tag of the token πgss_buffer_t output_tokenβ (buffer, opaque, modify) the encapsulated token data goes here!! and listen, the caller must release this withgss_release_buffer(). do not ghost your buffers, that's how you leak memory and we don't do that here π
π« DESCRIPTION π«
so what does she actually do? she adds the mechanism-independent token header to GSS-API context token data. periodt.
this is the one you use for the initial token of a GSS-API context establishment sequence. it incorporates an identifier of the mechanism type that's gonna be used on that context, and it enables tokens to be interpreted unambiguously at GSS-API peers. no cap, that's the whole vibe β everybody knows what the token is and who it's for β¨
see further section 3.1 of RFC 2743. and fun fact: this function is standardized in RFC 6339 π
π₯ RETURNS π₯
GSS_S_COMPLETEβ indicates successful completion, and that output parameters holds correct information. we ate. πGSS_S_FAILUREβ indicates that encapsulation failed for reasons unspecified at the GSS-API level. it's giving mystery, it's giving no explanation, it's giving... failure π
π REPORTING BUGS π
found a bug? don't be shy, report it to <bug-gss@gnu.org> π
GNU Generic Security Service home page: http://www.gnu.org/software/gss/
General help using GNU software: http://www.gnu.org/gethelp/
π COPYRIGHT π
Copyright Β© 2003-2022 Simon Josefsson.
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved.
π SEE ALSO π
the full documentation for gss is maintained as a Texinfo manual. if the info and gss programs are properly installed at your site, the command
info gss
should give you access to the complete manual. go read her, she's long but she's worth it π
and that's the page bestie!! brought to you by gss 1.0.4, page gss_encapsulate_token(3) β stay encapsulated, stay hydrated, and always gss_release_buffer() your output tokens π«Άβ¨π
π¦ where this page comes from
- alpine 3.24: libgss-doc 1.0.4-r2 Β· ( LGPL-3.0-or-later OR GPL-2.0-or-later ) AND GPL-3.0-or-later
- debian bookworm: gss-man 1.0.4-1+deb12u2 Β· GPL-3.0-or-later
- debian trixie: gss-man 1.0.4-4 Β· GPL-3.0-or-later
- ubuntu noble: gss-man 1.0.4-1build2 Β· GPL-3.0-or-later
- ubuntu questing: gss-man 1.0.4-4
- ubuntu resolute: gss-man 1.0.4-4build1 Β· GPL-3.0-or-later
- ubuntu stonking: gss-man 1.0.4-5 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms