gnutls_x509_crt_get_signature(3)

✨ gnutls_x509_crt_get_signature ✨

okay bestie, so this is a page from the gnutls manual, and today's main character is gnutls_x509_crt_get_signature β€” she's an API function and she's here to pull the signature field out of a certificate for you. no cap. πŸŽ€


🌸 NAME 🌸

gnutls_x509_crt_get_signature β€” the API function that gets the signature off a cert πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <gnutls/x509.h>

int gnutls_x509_crt_get_signature(gnutls_x509_crt_t cert, char * sig,
       size_t * sig_size);

πŸ’– ARGUMENTS πŸ’–

  • gnutls_x509_crt_t cert β€” this one should contain a gnutls_x509_crt_t type. that's the whole vibe. it's your certificate, your girl, your icon. πŸ‘‘
  • char * sig β€” a pointer to where the signature part is gonna get copied. and yes, she may be null β€” lowkey chill like that. πŸ™ˆ
  • size_t * sig_size β€” this one starts out holding the size of sig. so like, she already knows how much room she's working with before anything even happens. respect. ✨

πŸ”₯ DESCRIPTION πŸ”₯

so what does she actually do? this function will extract the signature field of a certificate. that's it, that's the whole job, and she does it flawlessly. the way that a function can just... do exactly one thing and do it well?? obsessed. πŸ’œ


⭐ RETURNS ⭐

on success, GNUTLS_E_SUCCESS (0) is returned. anything else and you get a negative error value β€” so if you see a negative number, that's not a vibe, that's a problem. 😭


πŸ’€ REPORTING BUGS πŸ’€

found a bug? not me being the messenger but like, please report it to <bugs@gnutls.org>.

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


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. (translation: you're free to share her, just keep the receipts. periodt. πŸ’…)


🌈 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/


and that's the whole page bestie!! go forth and extract those signatures, you've got this 🫢

this has been the gnutls manual, version 3.8.13, page gnutls_x509_crt_get_signature(3) β€” mwah, slay, bye!! πŸŽ€βœ¨πŸ¦‹

πŸ“¦ where this page comes from