pskc_get_signed_p(3)

πŸ’… pskc_get_signed_p(3) β€” the libpskc glow-up

okay so bestie, welcome to the libpskc corner of the manual, page three of pskc_get_signed_p. yes it's a mouthful, no we're not renaming it, and honestly? iconic of it.


🌸 NAME 🌸

pskc_get_signed_p β€” literally just an API function, that's the whole vibe πŸŽ€


✨ SYNOPSIS ✨

#include <pskc.h>

int pskc_get_signed_p(pskc_t * container);

that's it. that's the whole thing. short, sweet, slays πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • pskc_t * container β€” a pskc_t handle, and you get it from pskc_init(). like, that's where it comes from, no cap. don't just make one up out of nowhere bestie 🫢

πŸ’– DESCRIPTION πŸ’–

so what does this actually do? it checks whether the container is signed or not. that's it. that's the function. main character energy for real ✨

🚨 but listen β€” and this is the important part β€” it does not validate the signature. it merely checks whether there is one. so if you were hoping this was your security check, it is not, and I need you to know that before you go build something on top of it 😭 like it's giving "yes there's a Signature element in the building" and not giving "yes the signature is legit". two very different things, bestie.

πŸ‘‘ RETURNS πŸ‘‘

  • a non-0 value if the container contains a Signature element πŸ’€
  • 0 if there is no Signature element

so: nonzero = there's a signature, zero = nope, nothing there. simple. clean. ate. πŸ”₯


πŸ› REPORTING BUGS πŸ›

found a bug? found several? be so fr and report them to <oath-toolkit-help@nongnu.org> β€” the maintainers want to hear it, I promise, this is not a "don't bother them" situation, this is a "please bother them, that's the whole point" situation 🫢


Copyright Β© 2009-2026 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: yes you can copy it, yes you can remix it, just keep the copyright notice and this notice with it, and you don't owe anybody a single coin πŸ’Έ periodt)


and that's the page!! 🌈 this whole thing lives in libpskc version 2.6.15 β€” pskc_get_signed_p(3), signing off πŸ’œπŸ§šβ€β™€οΈ

πŸ“¦ where this page comes from