shishi_as_check_cname(3)
π 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 fromshishi_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>.
- GNU Shishi home page:
http://www.gnu.org/software/shishi/ - General help using GNU software:
http://www.gnu.org/gethelp/
like, they want to know. this is a safe space. π«Ά
π COPYRIGHT π
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 πππ¦
π¦ where this page comes from
- debian bookworm: shishi-doc 1.0.3-1 Β· GPL-3.0-or-later
- debian trixie: shishi-doc 1.0.3-5 Β· GPL-3.0-or-later
- nixos 26.05: shishi 1.0.3
- nixpkgs unstable: shishi 1.0.3
- ubuntu noble: shishi-doc 1.0.3-2.1build2 Β· GPL-3.0-or-later
- ubuntu questing: shishi-doc 1.0.3-5
- ubuntu resolute: shishi-doc 1.0.3-5build1 Β· GPL-3.0-or-later
- ubuntu stonking: shishi-doc 1.0.3-7 Β· 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