shishi_kdcreq_add_padata(3)

πŸ“¦
version 1.0.3 Β· 2 versions
  • 1.0.3 Β· debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 1.0.2 Β· ubuntu jammy
, in debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’… shishi_kdcreq_add_padata(3) β€” the shishi manual, bestie edition

okay so you're reading the shishi manual page for shishi_kdcreq_add_padata(3) and honestly? you're about to add some pre-auth data to a KDC-REQ and I am so proud of you already 🫢


✨ NAME ✨

shishi_kdcreq_add_padata β€” it's an API function, bestie. that's the whole vibe.


🌸 SYNOPSIS 🌸

#include <shishi.h>

int shishi_kdcreq_add_padata(Shishi * handle, Shishi_asn1 kdcreq, int
       padatatype, const char * data, size_t datalen);

look at her. five arguments. she's serving πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • Shishi * handle β€” the shishi handle, and no you can't just make one up, it's allocated by shishi_init(). that's her origin story.
  • Shishi_asn1 kdcreq β€” the KDC-REQ you're adding PA-DATA to. this is the main character of the operation, fr fr.
  • int padatatype β€” the type of PA-DATA. go check Shishi_padata_type for the full menu, iykyk.
  • const char * data β€” input array holding the PA-DATA value. the actual goods.
  • size_t datalen β€” size of that input array with the PA-DATA value. yes you have to say how big it is, she's not a mind reader 😭

πŸ’– DESCRIPTION πŸ’–

so the whole point: you're adding new pre authentication data (PA-DATA) to a KDC-REQ. this is the move where you pass various info over to the KDC πŸ¦‹

like, for example β€” if padatatype is a SHISHI_PA_TGS_REQ, then the PA-DATA is the AP-REQ that authenticates the user so they can get the ticket. iconic behaviour, honestly.

but bestie, also peep shishi_kdcreq_add_padata_tgs() β€” that one takes an AP-REQ directly, so if that's what you need, go there instead πŸ‘‘

⭐ RETURN VALUE ⭐

returns SHISHI_OK iff successful. that's it. that's the whole reward. if it's not SHISHI_OK, something's up and it's not slaying πŸ˜”


πŸ™ˆ REPORTING BUGS πŸ™ˆ

found a bug? don't suffer in silence, tell the people:


Copyright Β© 2002-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. so like, keep the receipts, periodt πŸ’œ


🌈 SEE ALSO 🌈

the full documentation for shishi is maintained as a Texinfo manual. if the info and shishi programs are properly installed at your site, this command:

info shishi

should give you access to the complete manual. go read it, it's giving scholarly 🧚


and that's the page!! this was shishi version 1.0.3, manual page shishi_kdcreq_add_padata(3) β€” thanks for reading the whole thing, bestie, you ate πŸ’…βœ¨πŸ’–