gnutls_x509_crt_set_proxy(3)
β¨ gnutls_x509_crt_set_proxy(3) β¨
okay bestie so this is a page from the gnutls manual (section 3, the library-functions section, iykyk) and it's literally all about setting a proxyCertInfo extension on a certificate. it's giving "niche but iconic" π let's go.
πΈ NAME πΈ
gnutls_x509_crt_set_proxy β an API function π«Ά
β¨ SYNOPSIS β¨
#include <gnutls/x509.h>
int gnutls_x509_crt_set_proxy(gnutls_x509_crt_t crt, int
pathLenConstraint, const char * policyLanguage, const char * policy,
size_t sizeof_policy);
π ARGUMENTS π
gnutls_x509_crt_t crtβ a certificate, of thegnutls_x509_crt_ttype. that's the one we're decorating β¨int pathLenConstraintβ okay so listen: if this is a non-negative value, it means the maximum length of path. if it's a negative value, it means thepathLenConstraintsfield should not be present at all. so like, negative = we're not even doing that field, periodt πconst char * policyLanguageβ the OID that describes the language ofpolicy.const char * policyβ auint8_tbyte array with the policy language. and yes, it can beNULLπsize_t sizeof_policyβ the size ofpolicy.
π DESCRIPTION π
this function will set the proxyCertInfo extension. that's it, that's the whole vibe. it does the one thing and it does it slayfully π
π RETURNS π
on success, GNUTLS_E_SUCCESS (0) is returned π otherwise you get a negative error value, which is the code's way of saying "not me failing the vibe check" π
π REPORTING BUGS π
found a bug? report it to <bugs@gnutls.org> β they wanna know, fr fr.
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 like, 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/
and that's the whole page bestie!! π this one's from gnutls 3.8.13, so if you're out here setting proxyCertInfo extensions, now you know exactly what's up. stay iconic, read your manpages, and remember: negative pathLenConstraint means the field is NOT invited to the party ππβ¨
π¦ 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