GNUTLS_X509_CRT_GET_SIGNATURE_OID(3)

✨ NAME ✨

gnutls_x509_crt_get_signature_oid β€” bestie, it's an API function πŸ’… and it lives in the gnutls manual, section 3 (iykyk, that's the library-functions section πŸŽ€).


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <gnutls/x509.h>

int gnutls_x509_crt_get_signature_oid(gnutls_x509_crt_t cert, char *
oid, size_t * oid_size);

like. that's the whole vibe. one include, one function, we love a minimal era ✨


🌸 ARGUMENTS 🌸

  • gnutls_x509_crt_t cert β€” this one should contain a gnutls_x509_crt_t type. yes bestie that's the certificate you're snooping on πŸ‘€
  • char * oid β€” a pointer to a buffer that's gonna hold the OID (and no cap, it may be null β€” she's flexible πŸ’…)
  • size_t * oid_size β€” initially holds the size of oid. so like, you tell her how much room she's got, she does the rest 🫢

πŸ’– DESCRIPTION πŸ’–

okay so this function returns the OID of the signature algorithm that was used to sign this certificate. literally handing you the receipts of "which algorithm signed this thing" 🧚

and here's the moment it's genuinely iconic: it's useful in the case that gnutls_x509_crt_get_signature_algorithm() returned GNUTLS_SIGN_UNKNOWN. so when the other function is like "idk her πŸ’€", this one comes through with the actual OID. main character energy fr fr.


⭐ RETURNS ⭐

zero on success, or a negative error code on error. so like, < 0 means something went sideways 😭


πŸŽ€ SINCE πŸŽ€

3.5.0 β€” she's been around, she's a legacy icon πŸ‘‘


πŸ’œ REPORTING BUGS πŸ’œ

found a bug? don't suffer in silence, tell the devs bestie:


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. (tl;dr: go off, just keep the receipts πŸ’…)


πŸ”₯ 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/

ngl that's the whole page. no skips, no cuts, every detail accounted for 🫢

and that's a wrap, bestie πŸ’– this lil page is from gnutls version 3.8.13 (section 3, gnutls_x509_crt_get_signature_oid(3)) β€” slay, bye πŸ‘‹βœ¨

πŸ“¦ where this page comes from