gnutls_privkey_status(3)
π gnutls_privkey_status β the manual page bestie
okay so real quick, this is a page from the gnutls manual (yes, that gnutls, the TLS library of legend) and it's all about one lil function that answers the question every girl asks: is the key actually there tho? π¦
β¨ NAME β¨
gnutls_privkey_status β an API function, and honestly? an icon π
β¨ SYNOPSIS β¨
#include <gnutls/abstract.h>
int gnutls_privkey_status(gnutls_privkey_t key);
β¨ ARGUMENTS β¨
gnutls_privkey_t keyβ holds the key. that's it, that's the whole vibe. it's the key you're asking about π
β¨ DESCRIPTION β¨
okay so what does it DO. it checks the status of the private key token. yes bestie, it's a vibe check for your key π
and here's the tea: this function is literally just a wrapper over gnutls_pkcs11_privkey_status(). so if the private key is a PKCS 11 token, it's gonna check whether that token is inserted or not. like, is it plugged in, is it present, is it showing up β that kind of energy β¨
β¨ RETURNS β¨
so this function returns non-zero if the token holding the private key is still available (inserted), and zero otherwise. no cap, that's the whole return contract π
β¨ SINCE β¨
3.1.10 β vintage. been serving looks since way back π«Ά
β¨ REPORTING BUGS β¨
found a bug? don't gatekeep, report it to <bugs@gnutls.org>. π
home page: https://www.gnutls.org
β¨ COPYRIGHT β¨
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, go off, just keep the receipts π
β¨ 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/
lowkey important:gnutls_privkey_statusandgnutls_pkcs11_privkey_statusare besties fr fr. know one, know the other π
and that's the page!! this was gnutls 3.8.13 (the source, the moment, the whole era), serving up gnutls_privkey_status(3) β stay inserted, bestie, and slay πβ¨πΈ
π¦ where this page comes from
- alpine 3.22: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- alpine 3.23: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- alpine 3.24: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- arch rolling: gnutls 3.8.13-3 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 43: gnutls-devel 3.8.13-1.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 43: gnutls-devel 3.8.13-1.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: gnutls-devel 3.8.13-1.fc44 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: gnutls-devel 3.8.13-1.fc44 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- ubuntu stonking: gnutls-doc 3.8.13-1ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms