shishi_as_check_cname(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_as_check_cname β€” the vibe check for names πŸ’–

okay so bestie, this is a page from the shishi manual, section 3 (that's the library-functions girlypop section, iykyk). It's all about one tiny little function that does one tiny little job, and honestly? she eats. Let's get into it. πŸŽ€


✨ NAME ✨

shishi_as_check_cname β€” it's an API function, bestie. That's literally her whole thing. No cap. πŸ’…


🌸 SYNOPSIS 🌸

#include <shishi.h>

int shishi_as_check_cname(Shishi * handle, Shishi_asn1 asreq,
Shishi_asn1 asrep);

like… look at her. three arguments. returns an int. she's not complicated, she's just important. πŸ¦‹


🫢 ARGUMENTS 🫢

  • Shishi * handle β€” the Shishi handle, and you get one of these from shishi_init(). so like, you already have it, or you go get it. don't show up to the function empty-handed fr fr. πŸ’œ
  • Shishi_asn1 asreq β€” the request, and it's gotta be of type AS-REQ. that's the vibe. that's the type. no substitutions. ✨
  • Shishi_asn1 asrep β€” the reply structure, type AS-REP. yes, it's a structure. yes, it's the reply. we love a matched set. πŸ“

πŸ‘‘ DESCRIPTION πŸ‘‘

so here's the tea, and the tea is actually really simple: this function verifies that the fields asreq.req-body.cname and asrep.cname contain identical names.

that's it. that's the whole job. she looks at the cname in the request, she looks at the cname in the reply, and she goes "…are these the same bestie? πŸ‘€"

and like, this is not optional busywork, okay? this is one of the steps that has to be performed when you're processing an exchange of AS-REQ and AS-REP. HAS to. it's giving mandatory. it's giving "you will not skip this." πŸ”₯

if you want the full lore on where this fits in the whole flow, go read shishi_kdc_process() β€” that's where the more-details live. 🌈


⭐ RETURN VALUE ⭐

she returns an int, and here's how to read her mood:

  • SHISHI_OK β€” yay! it worked! the names match, we're slaying, everything's fine πŸ’–
  • SHISHI_CNAME_MISMATCH β€” 🚨 the names differ. something is wrong. look into it.
  • and, y'know, an error code otherwise β€” because life is unpredictable and sometimes it's just not about the names at all 😭

πŸ› REPORTING BUGS πŸ›

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

Report bugs to <bug-shishi@gnu.org>.

like, they want to know. this is a safe space. 🫢


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.

(iconic of them honestly β€” no royalty, any medium, just keep the notice. 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, the command

info shishi

should give you access to the complete manual. that's the whole manual bestie, the motherlode, the main character of documentation. go read her. πŸ“šβœ¨


and that's the page!! mwah πŸ’…

this was shishi version 1.0.3, and you just read shishi_as_check_cname(3) from the shishi manual. take care of your cnames and they'll take care of you πŸŽ€πŸ’–πŸ¦‹