gnutls_x509_crq_set_key_usage(3)

πŸ’– gnutls_x509_crq_set_key_usage(3) πŸ’–

okay bestie so this is a page from the gnutls manual, and it's literally about telling a certificate request what its key is allowed to do πŸ”‘βœ¨

✨ NAME ✨

gnutls_x509_crq_set_key_usage β€” API function πŸŽ€


🌸 SYNOPSIS 🌸

#include <gnutls/x509.h>

int gnutls_x509_crq_set_key_usage(gnutls_x509_crq_t crq, unsigned int
usage);

like. the whole vibe in two lines. iconic. πŸ‘‘


πŸ¦‹ ARGUMENTS πŸ¦‹

  • gnutls_x509_crq_t crq β€” a certificate request of type gnutls_x509_crq_t. yes it's the same name as the type, no we're not going to talk about it, that's just how it is πŸ’…
  • unsigned int usage β€” an ORed sequence of the GNUTLS_KEY_* elements. so you take all your little permission flags and smush them together with bitwise OR, and that's the vibe. ORed sequence, not a single value, mkay? 🫢

🌈 DESCRIPTION 🌈

This function will set the keyUsage certificate extension. that's it. that's the whole job. it goes in, it sets the extension, it leaves. main character energy fr fr ⭐


πŸ’œ RETURNS πŸ’œ

On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative error value. so like, 0 is the slay outcome and anything negative is giving "something went wrong, check your vibe" 😭


πŸŽ€ SINCE πŸŽ€

2.8.0 β€” so this function has been around since forever, it's a veteran, an elder, a legend πŸ‘‘


πŸ™ˆ REPORTING BUGS πŸ™ˆ

Found a bug? not me manifesting problems but okay, 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. so like, take it, remix it, just keep the receipts bestie πŸ’š


🌟 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/

iykyk πŸ“šβœ¨


okay that's the whole page, no cap. this was gnutls 3.8.13 and yes it's the gnutls_x509_crq_set_key_usage(3) page, go set some key usages bestie, you're gonna ate πŸ’…πŸŒΈπŸ«Ά

πŸ“¦ where this page comes from