PKCS7_GET_SIGNER_INFO(3)
π PKCS7_GET_SIGNER_INFO π
ok so real talk, this page is in the Library Functions Manual and the function is PKCS7_get_signer_info. Bestie, it's giving "let me see who signed this" energy and honestly? iconic.
β¨ SYNOPSIS β¨
#include <openssl/pkcs7.h>
STACK_OF(PKCS7_SIGNER_INFO) *
PKCS7_get_signer_info(PKCS7 *p7);
like, you hand it a PKCS7 * and it hands you back a whole stack of signer info. periodt. π
πΈ DESCRIPTION πΈ
So what does it do? It grabs the set of SignerInfo structures out of the signerInfos field of p7. That's it. That's the whole vibe. π¦
And once you have them? You can literally go manipulate them with the functions documented in PKCS7_add_attribute(3). lowkey obsessed with the pipeline here β grab the signer infos, then go poke at their attributes. main character workflow fr fr. π
π₯ RETURN VALUES π₯
PKCS7_get_signer_info() returns an internal pointer to a STACK_OF(PKCS7_SIGNER_INFO) object, or NULL on failure. ngl, remember that it's internal β that detail is doing a lot of work. π
It fails if:
- p7 is
NULL(like, nothing there bestie) - it has no content
- it's of a type other than
SignedDataorSignedAndEnvelopedDataπ
so if you're passing in some random other type and wondering why you got NULL backβ¦ yeah, that's why. vibe check failed. π
π SEE ALSO π
go read them, iykyk π§
β HISTORY β
PKCS7_get_signer_info() first appeared in SSLeay 0.8.1 and has been available since OpenBSD 2.4. like, this function has been around longer than most of us, respectfully. π«Ά
and that's the whole page!! mwah π β¨ this one came from the Debian edition, dated June 10, 2020 β shoutout to the packagers, they ate and left no crumbs ππ
π¦ where this page comes from
- opensuse-leap 16.0: libressl-devel-doc 4.1.0-bp160.1.1 Β· OpenSSL
- Copyright (c) 2020 Ingo Schwarze <schwarze@openbsd.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms