gnutls_x509_crq_get_pk_oid(3)
β¨ gnutls_x509_crq_get_pk_oid(3) β¨
okay bestie, gather round π this one lives in the gnutls manual, and it's all about pulling the OID of a public key algorithm out of a certificate request. yes, an OID. the lil dotted-number situation. let's get into it π
πΈ NAME πΈ
gnutls_x509_crq_get_pk_oid β lowkey an API function, highkey useful π
π¦ SYNOPSIS π¦
#include <gnutls/x509.h>
int gnutls_x509_crq_get_pk_oid(gnutls_x509_crq_t crq, char * oid, size_t
* oid_size);
π ARGUMENTS π
gnutls_x509_crq_t crqβ bestie this should contain agnutls_x509_crq_ttype. that's the vibe check βchar * oidβ a pointer to a buffer to hold the OID. and no, it's not mandatory β it may be null πsize_t * oid_sizeβ initially holds the size ofoid. it's giving "tell me how much room you've got" π
π DESCRIPTION π
so like, this function will return the OID of the public key algorithm on that certificate request. periodt. π«Ά
and why would you need that, you ask? because sometimes gnutls_x509_crq_get_pk_algorithm() comes back with GNUTLS_PK_UNKNOWN π and when that happens, this is your main character move. it's the fallback bestie. the "the algorithm function didn't know so let me get the raw OID instead" situation. iconic honestly β¨
β RETURNS β
zero, or a negative error code on error. simple as that π
π SINCE π
3.5.0 β been here a minute, no cap π§
π REPORTING BUGS π
found something cursed? 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. (yep, all of that, verbatim, they're very serious about the notice staying put π«‘)
πΈ 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/
ok that's the whole thing, every flag, every arg, every line, nothing skipped π go forth and fetch those OIDs, bestie π¦
mwah π β this page came to you from the gnutls 3.8.13 era, gnutls_x509_crq_get_pk_oid(3), and yes she ate and left no crumbs πβ¨
π¦ 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