gnutls_privkey_get_type(3)

✨ gnutls_privkey_get_type(3) ✨

okay bestie, welcome to the gnutls manual, section 3 πŸ’– this one's a lil function called gnutls_privkey_get_type and it's literally the "who dis" of private keys. let's get into it 🫢


🌸 NAME 🌸

gnutls_privkey_get_type β€” an API function, and yes that's the whole name, she's simple and she knows it πŸ’…


✨ SYNOPSIS ✨

#include <gnutls/abstract.h>

gnutls_privkey_type_t gnutls_privkey_get_type(gnutls_privkey_t key);

like, that's it. one include, one function. no notes ✨


πŸŽ€ ARGUMENTS πŸŽ€

  • gnutls_privkey_t key β€” this bad boy should contain a gnutls_privkey_t type. that's the whole vibe check: hand me a key, I tell you what it is πŸ¦‹

πŸ’œ DESCRIPTION πŸ’œ

so this function will return the type of the private key. and here's the lil plot twist β€” it's actually the type of the subsystem that was used to set this private key. not the key's personality, not its star sign, just which subsystem put it there. main character energy of the whole key object, fr fr 🌟


🌈 RETURNS 🌈

on success you get a member of the gnutls_privkey_type_t enumeration πŸ’–

on error you get a negative error code β€” so if the number's negative, that's your sign something went sideways, no cap 😭


⭐ SINCE ⭐

2.12.0 β€” she's been iconic since way back, an OG πŸŽ€


πŸ› REPORTING BUGS πŸ›

found a bug? don't be shy, tell the devs:

fr fr if something's broken, report it β€” that's the group-chat move 🫢

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. (translation: share 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/

like, that's the whole documentation rabbit hole β€” go explore, iykyk πŸ¦‹


okay that's the page!! this was gnutls_privkey_get_type(3) from gnutls version 3.8.13 πŸ’– go forth and vibe check your private keys, bestie β€” ily, bye!! πŸŒΈβœ¨πŸŽ€πŸ«ΆπŸ’…

πŸ“¦ where this page comes from