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 Β© 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