shishi_ap_set_tktoptionsdata(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_ap_set_tktoptionsdata ✨

okay bestie, so this is a page from the shishi manual β€” section 3, which is where all the library function girlies live πŸ’…. The function's full government name is shishi_ap_set_tktoptionsdata, and it's an API function, no cap.


🌸 NAME 🌸

shishi_ap_set_tktoptionsdata β€” API function


πŸŽ€ SYNOPSIS πŸŽ€

#include <shishi.h>

int shishi_ap_set_tktoptionsdata(Shishi_ap * ap, Shishi_tkt * tkt, int
options, const char * data, size_t len);

like. look at her. she takes five whole arguments. iconic behavior honestly.


πŸ¦‹ ARGUMENTS πŸ¦‹

  • Shishi_ap * ap β€” the structure that holds all the info about the AP exchange. she's the main character here, everything happens inside her 🫢
  • Shishi_tkt * tkt β€” the ticket we're setting in the AP. yes, that ticket.
  • int options β€” the AP-REQ options to set in the AP. just some lil options, nbd.
  • const char * data β€” an input array holding the data to checksum in the Authenticator. it's giving "raw bytes that matter" energy.
  • size_t len β€” the length of that input array with the data to checksum in the Authenticator. she's the data's plus-one, always showing up together πŸ’–

πŸ’œ DESCRIPTION πŸ’œ

So what does she actually do? Three things, and she does them all in one go because she's efficient like that:

  1. Sets the ticket β€” the way shishi_ap_tkt_set() would do it.
  2. Sets the AP-REQ apoptions β€” the way shishi_apreq_options_set() would do it.
  3. Sets the Authenticator checksum data.

that's it. that's the whole vibe. lowkey a combo move, highkey convenient 🌈


⭐ RETURN VALUE ⭐

Returns SHISHI_OK iff successful. and like, only if. no partial credit, bestie β€” it's SHISHI_OK or it's not πŸ’€


πŸ™ˆ REPORTING BUGS πŸ™ˆ

Found a bug? not me being the bearer of bad news but β€” report it to <bug-shishi@gnu.org>. πŸ›

they wanna hear from you fr fr. don't be shy.


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.

(translation: take it, share it, just keep the receipts 🧾✨)


🌈 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, the command

info shishi

should give you access to the complete manual. go read her, she's thorough πŸ’…


k bye ily, go checksum something πŸ“

this was shishi version 1.0.3, dated with the shishi_ap_set_tktoptionsdata(3) energy of it all β€” mwah πŸ’–