shishi_priv_enc_part_etype(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_priv_enc_part_etype β€” bestie's guide to the shishi manual, section 3 πŸ’–

okay so. this is shishi_priv_enc_part_etype(3), a page from the shishi manual (section 3, the library-call girlies ✨), and it's literally just one lil API function. but she's important. let's get into it 🫢


✨ NAME ✨

shishi_priv_enc_part_etype β€” API function. that's the whole name bestie, no notes πŸ’…


🌸 SYNOPSIS 🌸

#include <shishi.h>

int shishi_priv_enc_part_etype(Shishi * handle, Shishi_asn1 priv,
int32_t * etype);

look at her. three args, one int coming back at ya. iconic behavior fr fr πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • Shishi * handle β€” the shishi handle, and you get it the normal way, as allocated by shishi_init(). no handle, no vibes, no function πŸ’€
  • Shishi_asn1 priv β€” the PRIV variable we're pulling the value out of. she's the source, the main character, the one holding the tea πŸ“
  • int32_t * etype β€” an output variable that holds the value. it's a pointer, so she writes back into your little int32_t and you get the result. lowkey obsessed with out-params 🎁

πŸ¦‹ DESCRIPTION πŸ¦‹

Extract PRIV.enc-part.etype.

that's it. that's the whole thing. she extracts the etype field from the enc-part of the PRIV structure. a tiny little getter doing tiny little getter things and honestly? we love her for it ✨


⭐ RETURN VALUE ⭐

Returns SHISHI_OK iff successful.

so: if everything goes right, you get SHISHI_OK. if not... not that. check your return values bestie, the way that error codes will humble you 😭


😭 REPORTING BUGS 😭

found a bug? do not suffer in silence, report it to <bug-shishi@gnu.org> πŸ’Œ

they wanna hear from you, fr fr. bug reports are a love language 🫢


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.

like... slay, that's a genuinely generous license. no royalty, 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. go read it, it's giving ✨expanded lore✨ iykyk πŸ“š


ngl if you skipped straight to the bottom, go back up, there were literally only like six things and they all mattered πŸ’…

mwah β€” that's the whole page. go forth and extract your etypes responsibly, bestie πŸŒΈπŸ¦‹πŸ’–

this lil beauty ships with shishi version 1.0.3, page shishi_priv_enc_part_etype(3), and she's been living rent-free in the shishi manual since forever. bye babes πŸŽ€