GNUTLS_X509_CRL_GET_SIGNATURE_OID(3)

πŸ’– gnutls_x509_crl_get_signature_oid πŸ’–

okay bestie, sit down, hydrate, because we're about to read a CRL's signature OID and it's actually kind of iconic. this page lives in the gnutls manual, and the whole vibe is: "the algorithm name came back cursed, now what?" πŸ¦‹


✨ NAME ✨

gnutls_x509_crl_get_signature_oid β€” the API function that hands you the OID of the signature algorithm used to sign a CRL. no cap. πŸ’…


✨ SYNOPSIS ✨

#include <gnutls/x509.h>

int gnutls_x509_crl_get_signature_oid(gnutls_x509_crl_t crl, char * oid,
                                      size_t * oid_size);

✨ ARGUMENTS ✨

  • gnutls_x509_crl_t crl β€” bestie this should contain a gnutls_x509_crl_t type. that's the whole requirement. it's giving "bring your own CRL". πŸŽ€
  • char * oid β€” a pointer to a buffer that's gonna hold the OID. and guess what, it may be null, so if you're just vibe-checking the size first, you're so valid. ✨
  • size_t * oid_size β€” this one initially holds the size of oid. it comes in knowing things. it's the main character. πŸ‘‘

✨ DESCRIPTION ✨

so this function literally returns the OID of the signature algorithm that has been used to sign this CRL. that's it. that's the whole job. 🫢

and why would you even need that? because this function is useful in the case where gnutls_x509_crl_get_signature_algorithm() returned GNUTLS_SIGN_UNKNOWN. yeah. when the nice friendly algorithm lookup is like "idk her πŸ’€", you come here and get the raw OID instead. iykyk.


✨ RETURNS ✨

zero, or a negative error code on error. so like, 0 is the slay, anything negative is the not-slay. 😭


✨ SINCE ✨

3.5.0 β€” an elder. a classic. still serving. 🌸


✨ REPORTING BUGS ✨

found a bug? do NOT suffer in silence, tell the girlies:


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. so yes, you may absolutely redistribute this, just keep the receipt. 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/

like, go read the whole thing, it's a saga, it's a journey, it's giving encyclopedia but make it cute. πŸ“šβœ¨


okay that's the whole page, you ate that, go forth and OID responsibly πŸ’…πŸŒˆ

this little love letter came to you from the gnutls manual, version 3.8.13 β€” mwah, bye bestie! πŸŽ€πŸ¦‹πŸ’–

πŸ“¦ where this page comes from