gnutls_pubkey_get_key_usage(3)

πŸ’– gnutls_pubkey_get_key_usage(3) πŸ’–

okay bestie, so this one lives in the gnutls manual (section 3, the library-call section, iykyk) and it's genuinely so simple it's giving iconic minimalism. it's an API function. that's it. that's the vibe. ✨


🌸 NAME 🌸

gnutls_pubkey_get_key_usage β€” API function

no cap, that's the whole name section. we love a short intro. πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

#include <gnutls/abstract.h>

int gnutls_pubkey_get_key_usage(gnutls_pubkey_t key, unsigned int *
usage);

the way you just include <gnutls/abstract.h> and then the function is right there for you. obsessed. πŸ¦‹


✨ ARGUMENTS ✨

  • gnutls_pubkey_t key β€” should contain a gnutls_pubkey_t type. yeah bestie, the param that holds the pubkey should hold the pubkey. ground-breaking, we know, but that's literally what it says. 🫢
  • unsigned int * usage β€” if you set it, it'll return the number of bits of the parameters (and yes, it may be NULL, so you can totally pass NULL if you're just vibing and don't care about the value).

πŸ’œ DESCRIPTION πŸ’œ

so basically this function will return the key usage of the public key. that's the whole plot. no subplot, no twist, just the key usage of the public key, handed to you. periodt. πŸ‘‘


⭐ RETURNS ⭐

on success you get GNUTLS_E_SUCCESS (which is 0, the good number, the slay number) β€” otherwise it hands you back a negative error value, which is the universe's way of saying "not today." 😭


🌈 SINCE 🌈

2.12.0 β€” this has been around since forever, it's a whole elder statesman of the API. respect. πŸ’œ


πŸ™ˆ REPORTING BUGS πŸ™ˆ

found something cursed? report bugs 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, keep the notice, that's the 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_pubkey_get_key_usage(3) from the gnutls manual, version 3.8.13 β€” thanks for reading all the way to the bottom, you're the main character today. mwah. πŸŽ€βœ¨πŸŒΈπŸ’…

πŸ“¦ where this page comes from