gnutls_x509_policies_set(3)
β¨ NAME β¨
gnutls_x509_policies_set β bestie, this is literally the API function that drops a policy into your policies bag π
π¦ SYNOPSIS π¦
#include <gnutls/x509-ext.h>
int gnutls_x509_policies_set(gnutls_x509_policies_t policies, const
struct gnutls_x509_policy_st * policy);
π ARGUMENTS π
gnutls_x509_policies_t policiesβ an initialized policies. yes, it has to be initialized first, don't come at me with an uninitialized one πconst struct gnutls_x509_policy_st * policyβ contains the policy to set. that's the lil policy payload you're yeeting in there β¨
π DESCRIPTION π
okay so, the way this works: this function will store the specified policy in the provided policies. that's it, that's the whole vibe. you hand it a policies and a policy, and it tucks that policy right on into your policies. slay π
πΈ RETURNS πΈ
on success you get GNUTLS_E_SUCCESS (which is 0, iconic), otherwise it's giving a negative error value π
β SINCE β
3.3.0 β so this has been around for a minute, it's lowkey a classic π
π«Ά REPORTING BUGS π«Ά
found a bug? don't be shy, report 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. periodt π
π 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 a wrap bestie π this page came to you from the gnutls manual, version 3.8.13, and it's the gnutls_x509_policies_set(3) page fr fr. go forth and set those policies π
β¨π¦
π¦ 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