gnutls_x509_ext_export_proxy(3)

πŸ’– gnutls_x509_ext_export_proxy(3) πŸ’–

okay bestie, welcome to the gnutls manual page for gnutls_x509_ext_export_proxy. yes it's a mouthful, no you don't have to say it out loud. let's get into it πŸ¦‹


✨ NAME ✨

gnutls_x509_ext_export_proxy β€” literally just an API function, that's the whole vibe


🌸 SYNOPSIS 🌸

#include <gnutls/x509-ext.h>

int gnutls_x509_ext_export_proxy(int pathLenConstraint, const char *
policyLanguage, const char * policy, size_t sizeof_policy,
gnutls_datum_t * ext);

πŸŽ€ ARGUMENTS πŸŽ€

  • int pathLenConstraint β€” bestie listen. if you hand this a negative value, the path length constraint gets removed, periodt. if it's non-negative, that number becomes the length of the pathLenConstraints field. your call, your power πŸ’…
  • const char * policyLanguage β€” the OID that describes the language of policy. it's giving "which language is this policy speaking" πŸ—£οΈ
  • const char * policy β€” a uint8_t byte array holding the policy language. and yes, it can be NULL. iconic, honestly.
  • size_t sizeof_policy β€” the size of policy. the receipts, the measurements, the exact tea β˜•
  • gnutls_datum_t * ext β€” the DER-encoded extension data ✨. important: you gotta free this yourself with gnutls_free(). she does not clean up after herself, that's on you 🫢

🌈 DESCRIPTION 🌈

so what does this function actually do? it takes all those parameters you just fed it and converts them into a proxyCertInfo extension. one glow-up, coming right up πŸ’«

and the ext data? that gets allocated using gnutls_malloc(). noted, remembered, tattooed on my brain 🧠


⭐ RETURNS ⭐

slay on success: you get GNUTLS_E_SUCCESS (0) πŸŽ‰

if it's not giving: you get a negative error value. 😭


πŸ¦‹ SINCE πŸ¦‹

3.3.0 β€” she's been around, she's got history, she's a legend πŸ‘‘


πŸ› REPORTING BUGS πŸ›

found a bug? don't be shy, tell the devs:


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.

(no cap, that's the actual legal text, I'm not paraphrasing the license πŸ’€)


πŸ’œ 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/

fr fr, read the docs. iykyk 🌸

that's the whole page bestie, go forth and export those proxy extensions responsibly 🧚

gnutls 3.8.13 Β· gnutls_x509_ext_export_proxy(3) β€” mwah, catch you in the next manpage πŸ’‹πŸ’–

πŸ“¦ where this page comes from