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 agnutls_x509_crt_ttype. 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 benullβ she's flexible π )size_t * oid_sizeβ initially holds the size ofoid. 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:
- Report bugs to <bugs@gnutls.org>.
- Home page: <https://www.gnutls.org>
π COPYRIGHT π
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
- alpine 3.22: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- alpine 3.23: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- alpine 3.24: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- arch rolling: gnutls 3.8.13-3 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 43: gnutls-devel 3.8.13-1.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 43: gnutls-devel 3.8.13-1.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: gnutls-devel 3.8.13-1.fc44 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: gnutls-devel 3.8.13-1.fc44 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- ubuntu stonking: gnutls-doc 3.8.13-1ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms