gnutls_x509_ext_import_proxy(3)
π gnutls_x509_ext_import_proxy β bestie edition π
okay so this is a page from the gnutls manual, and it's literally all about pulling the deets out of a proxy certificate extension. no cap, it's a whole vibe. let's get into it π¦
β¨ NAME β¨
gnutls_x509_ext_import_proxy β the API function that yoinks info out of a proxy cert extension π
π SYNOPSIS π
#include <gnutls/x509-ext.h>
int gnutls_x509_ext_import_proxy(const gnutls_datum_t * ext, int *
pathlen, char ** policyLanguage, char ** policy, size_t *
sizeof_policy);
πΈ ARGUMENTS πΈ
const gnutls_datum_t * extβ bestie this is the DER encoded extension data, the raw material, the main character of the input π«Άint * pathlenβ pointer to an output integer that tells you the path length. it may beNULL, so it's giving optional. here's the tea: non-negative error codes mean there's a presentpCPathLenConstraintfield and that's the actual value, and-1means the field is literally absent, she's not there πchar ** policyLanguageβ output variable holding the OID of the policy language β¨char ** policyβ output variable holding the policy data itself πsize_t * sizeof_policyβ output variable with the size of the policy data, because we need to know how much policy we're dealing with π
π DESCRIPTION π
so this function returns the information from a proxy certificate extension. it reads the ProxyCertInfo X.509 extension, which is 1.3.6.1.5.5.7.1.14 β yes, that exact OID, copy it carefully bestie, character for character, iykyk π₯
β οΈ IMPORTANT: thepolicyLanguageandpolicyvalues must be deinitialized usinggnutls_free()after use. don't leave them hanging, that's rude and also a memory leak π
β RETURNS β
on success, GNUTLS_E_SUCCESS (0) is returned. otherwise you get a negative error value. that's it, that's the whole vibe check π
π¦ SINCE π¦
3.3.0 β she's been iconic since 3.3.0, a true veteran π
π REPORTING BUGS π
found a bug? spill it 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. so yes, you can share it, just keep the receipts bestie β¨
π 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 like, go visit:
https://www.gnutls.org/manual/
and that's the whole page, bestie!! πβ¨π this was gnutls_x509_ext_import_proxy(3) from the gnutls manual, version 3.8.13 β slay, periodt, go read the extension π
π¦πΈ
π¦ 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