GNUTLS_X509_CRQ_GET_SIGNATURE_OID(3)

✨ NAME ✨

gnutls_x509_crq_get_signature_oid β€” bestie, this is an API function and it's here to hand you the OID of the thing that signed your cert request πŸ’–


🌸 SYNOPSIS 🌸

#include <gnutls/x509.h>

int gnutls_x509_crq_get_signature_oid(gnutls_x509_crq_t crq, char * oid,
       size_t * oid_size);

πŸŽ€ ARGUMENTS πŸŽ€

  • gnutls_x509_crq_t crq β€” this one should contain a gnutls_x509_crq_t type. that's the vibe check it has to pass, no cap πŸ¦‹
  • char * oid β€” a pointer to a buffer that's gonna hold the OID. and yes, it may be null πŸ‘€
  • size_t * oid_size β€” this starts out holding the size of oid, so it comes in pre-loaded, okurrr πŸ’…

πŸ’œ DESCRIPTION πŸ’œ

okay so here's the tea β˜• β€” this function returns the OID of the signature algorithm that was used to sign this certificate request. literally what it says on the tin, bestie.

and the way it's actually useful? it's giving backup plan, because when gnutls_x509_crq_get_signature_algorithm() came back with GNUTLS_SIGN_UNKNOWN, this is the one you call next πŸ™ˆβœ¨


⭐ RETURNS ⭐

zero, or a negative error code if something went wrong 😭 that's it, that's the whole return value.


🌈 SINCE 🌈

3.5.0 β€” it's been around, it's iconic, it ate πŸ‘‘


🫢 REPORTING BUGS 🫢

found something cursed? report bugs to <bugs@gnutls.org>. they wanna hear it fr fr πŸ’€

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. slay, no strings attached πŸŽ€


πŸ¦‹ 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, then bestie you gotta visit:

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


and that's the whole page, mwah πŸ’‹ this was gnutls_x509_crq_get_signature_oid from the gnutls 3.8.13 manual β€” go off, read ur man pages, drink water, ily 🫢✨

πŸ“¦ where this page comes from