gnutls_x509_policies_get(3)
π gnutls_x509_policies_get β the girlies are fetching ONE policy π
okay so bestie, this one lives in the gnutls manual (yes, that gnutls β the TLS library, the icon, the moment) and it's literally called gnutls_x509_policies_get. It's an API function. No cap. π
β¨ NAME β¨
gnutls_x509_policies_get β API function π¦
πΈ SYNOPSIS πΈ
#include <gnutls/x509-ext.h>
int gnutls_x509_policies_get(gnutls_x509_policies_t policies, unsigned
int seq, struct gnutls_x509_policy_st * policy);
like, there she is. three arguments, one int return, we love a clean signature π
π ARGUMENTS π
gnutls_x509_policies_t policiesβ the policies, periodt. this is the whole collection you're digging through.unsigned int seqβ the index of the name to get π i.e. which one you want out of the list.struct gnutls_x509_policy_st * policyβ will hold the policy. she's an out-param, she's holding the goods, she's doing her thing. π
π¦ DESCRIPTION π¦
So the way this works: this function will return a specific policy as stored in the policies type. Like, you point at index seq and boom, out comes that policy. β¨
β οΈ big vibe-check moment: the returned values should be treated as constant and are valid for the lifetime ofpolicies. Do not be out here editing them, bestie, and don't go using them afterpoliciesis gone. It's giving "borrowed, not yours." π
Also! The any policy OID is available as the GNUTLS_X509_OID_POLICY_ANY macro. Write that down. π
π RETURNS π
- On success,
GNUTLS_E_SUCCESS(0) is returned π₯³ slay. GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLEif the index is out of bounds β aka you asked for a policy that does not exist, and the library is politely telling you no. π- otherwise, a negative error value. check your errors, always. π«Ά
β SINCE β
3.3.0 β she's been around a minute, she's a classic, she's an elder icon π
π REPORTING BUGS π
Found a bug? Not the vibe, but tell the people:
- 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. (fr fr, royalty-free, just keep the notice, that's the whole deal πΈ)
π§ 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 was gnutls manual page for gnutls_x509_policies_get, from the gnutls 3.8.13 era β mwah, take care of her, and remember: check your return values, treat the data as constant, and stay hydrated πβ¨ππ¦
π¦ 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