gnutls_x509_crt_get_proxy(3)
π gnutls_x509_crt_get_proxy π
okay bestie, so you found yourself in the gnutls manual (yes, that gnutls, the 3.8.13 era, iconic) and you're staring at gnutls_x509_crt_get_proxy(3). don't panic. it's giving "niche but powerful" and honestly? we're obsessed. let's get into it π«Ά
β¨ NAME β¨
gnutls_x509_crt_get_proxy β it's an API function, periodt. that's the whole name. she's simple like that π
πΈ SYNOPSIS πΈ
#include <gnutls/x509.h>
int gnutls_x509_crt_get_proxy(gnutls_x509_crt_t cert, unsigned int *
critical, int * pathlen, char ** policyLanguage, char ** policy, size_t *
sizeof_policy);
yes, that's six arguments. she's a lot. but so are we π
π ARGUMENTS π
gnutls_x509_crt_t certβ bestie, this one should contain agnutls_x509_crt_ttype. that's the vibe check. it's the certificate you're snooping on πunsigned int * criticalβ this lil output will be non-zero if the extension is marked as critical. so like, if it's that important, she'll let you know β¨int * pathlenβ a pointer to an output integer indicating path length. and yes, it may beNULL, no pressure. here's the tea: non-negative error codes mean there's a presentpCPathLenConstraintfield, and they give you the actual value. but-1?-1means the field is absent. she ghosted you π₯²char ** policyLanguageβ output variable holding the OID of the policy language πchar ** policyβ output variable with the policy data, the actual content, the main character of the output πsize_t * sizeof_policyβ output variable for the size of that policy data. gotta know how much you're working with, iykyk π
π¦ DESCRIPTION π¦
so what does this function actually do? she will get information from a proxy certificate. like, that's her whole job and she does it well π«Ά
specifically, she reads the ProxyCertInfo X.509 extension β the one and only 1.3.6.1.5.5.7.1.14. yes that's a real OID, no cap. write it down, screenshot it, tattoo it, whatever you gotta do π
β RETURNS β
on success? GNUTLS_E_SUCCESS (0) is returned, and we celebrate π otherwise you get a negative error code back. it's giving "not today, bestie" π
π€ REPORTING BUGS π€
found a bug? do NOT suffer in silence, take it straight to the source:
- report bugs to
<bugs@gnutls.org> - home page:
https://www.gnutls.org
they wanna hear from you fr fr π
π 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. so like, go forth and share, 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, bestie, you gotta go visit:
https://www.gnutls.org/manual/
it's right there waiting for you π
lowkey reminder: this page is from thegnutlsmanual, version3.8.13. stay hydrated, read your man pages, and slay πβ¨π
π¦ 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