gnutls_x509_key_purpose_set(3)

gnutls_x509_key_purpose_set(3) πŸ’–

okay bestie, welcome to the gnutls corner of the manual, where we talk about key purposes and honestly? it's giving certificate vibes ✨


✨ NAME ✨

gnutls_x509_key_purpose_set β€” the API function that sets a key purpose, no cap πŸ’…


🌸 SYNOPSIS 🌸

#include <gnutls/x509-ext.h>

int gnutls_x509_key_purpose_set(gnutls_x509_key_purposes_t p, const char
* oid);

πŸŽ€ ARGUMENTS πŸŽ€

  • gnutls_x509_key_purposes_t p β€” the key purposes, like the whole lil' collection we're working with 🫢
  • const char * oid β€” the object identifier of the key purpose. yes, the OID. that string of numbers. iconic.

πŸ¦‹ DESCRIPTION πŸ¦‹

so basically, this function will store the specified key purpose in the purposes. that's the whole plot. it takes your key purpose and tucks it right into the purposes. periodt. πŸ‘‘


⭐ RETURNS ⭐

on success you get GNUTLS_E_SUCCESS (0) β€” slay πŸ’š β€” otherwise you get a negative error value, which is the code's way of saying "not me today bestie" 😭


🌈 SINCE 🌈

3.3.0 β€” she's been here a minute, lowkey a veteran πŸ’œ


πŸ’€ REPORTING BUGS πŸ’€

found a bug? not the vibe. 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. fr fr, 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/

ngl bestie, that's the whole page. go forth and set those key purposes 🧚

gnutls version 3.8.13 πŸ’– β€” mwah, take care of her, she's an icon πŸŽ€βœ¨

πŸ“¦ where this page comes from