gnutls_pkcs7_get_signature_info(3)

πŸ’– gnutls_pkcs7_get_signature_info β€” a manual page, but make it bestie-core πŸ’–

okay so this is a page from the gnutls manual (yes, the crypto library, the real one, she's iconic) and we're talking about gnutls_pkcs7_get_signature_info. it's giving "let me peek inside your PKCS 7 structure and tell you about one specific signature" energy. slay.


✨ NAME ✨

gnutls_pkcs7_get_signature_info β€” literally just an API function, no cap 🫢


πŸŽ€ SYNOPSIS πŸŽ€

#include <gnutls/pkcs7.h>

int gnutls_pkcs7_get_signature_info(gnutls_pkcs7_t pkcs7, unsigned idx,
gnutls_pkcs7_signature_info_st * info);

πŸ¦‹ ARGUMENTS πŸ¦‹

  • gnutls_pkcs7_t pkcs7 β€” bestie, this one should contain a gnutls_pkcs7_t type. that's the vibe check. βœ…
  • unsigned idx β€” the index of the signature info you wanna check πŸ‘€ like which one in the lineup
  • gnutls_pkcs7_signature_info_st * info β€” this is where the output signature gets dropped off. it's the lil container, the gift bag, the ✨ receptacle ✨

🌸 DESCRIPTION 🌸

so the way this works: this function will return information about the signature identified by idx in the provided PKCS 7 structure. yes, that idx. the one you passed. she's looking it up for you, no stress πŸ’…

🚨 IMPORTANT BESTIE ALERT 🚨 the information you get back should be deinitialized using gnutls_pkcs7_signature_info_deinit(). like, you gotta clean up after yourself. it's giving "leave the room how you found it" energy. don't be the person who leaks memory, it's not the moment πŸ™ˆ

🌈 RETURNS 🌈

On success, GNUTLS_E_SUCCESS (0) is returned β€” we love a zero, we love a win, periodt πŸ’–

Otherwise? a negative error value. 😭 so like, check your return values, bestie. always.


⭐ SINCE ⭐

3.4.2 β€” she's been around a minute, a real veteran, lowkey iconic πŸ‘‘


πŸ“ REPORTING BUGS πŸ“

found a bug? (not the cute kind πŸ›) β€” report bugs to <bugs@gnutls.org>.

Home page: https://www.gnutls.org

fr fr, they wanna hear from you.


Copyright Β© 2001-2023 Free Software Foundation, Inc., and others.

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. that's the whole deal, super generous, we stan 🫢


πŸ’œ SEE ALSO πŸ’œ

The full documentation for gnutls is maintained as a Texinfo manual. If the /usr/share/doc/gnutls/ directory does not contain the HTML form, visit:

https://www.gnutls.org/manual/

iykyk β€” go read the whole thing, it's a journey 🧚


and that's the page, bestie!! this lil drop of wisdom comes to you from gnutls version 3.8.13 (source: the gnutls project, obviously πŸ’…). go forth, get your signature info, deinit it when you're done, and stay hydrated. mwah πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from