gnutls_pkcs11_token_set_pin(3)
β¨ gnutls_pkcs11_token_set_pin(3) β¨
okay bestie, welcome to the gnutls manual, section 3 β yes, that's the section for library calls, and yes, this whole page is about changing a PIN on a PKCS #11 token. it's giving security girlie. let's go π
π NAME π
gnutls_pkcs11_token_set_pin β literally just an API function, that's it, that's the whole name π
π¦ SYNOPSIS π¦
#include <gnutls/pkcs11.h>
int gnutls_pkcs11_token_set_pin(const char * token_url, const char *
oldpin, const char * newpin, unsigned int flags);
look at her. four args. very demure, very mindful β¨
πΈ ARGUMENTS πΈ
const char * token_urlβ a PKCS 11 URL that specifies a token. this is you pointing at which token you mean, bestie, so don't be vague πconst char * oldpinβ the old user's PIN. the current one. the one you're replacing πconst char * newpinβ the new user's PIN. the glow-up version πunsigned int flagsβ one ofgnutls_pin_flag_t. pick your fighter π
π DESCRIPTION π
so here's the tea: this function will modify or set a user's or an administrator's PIN for the given token. iconique.
if you're calling it to set a PIN for the first time, then oldpin must be NULL. no old PIN exists, so don't make one up, she'll know π
and when you're setting the admin's PIN with the GNUTLS_PIN_SO flag, the oldpin value must be provided. > heads up though: that requirement got relaxed after GnuTLS 3.6.5, and since then the PIN will be requested if it's missing. so like, lowkey flexible now π«Ά
β RETURNS β
on success, GNUTLS_E_SUCCESS (0) is returned. anything else? that's a negative error value, and you should go read it. no skipping π
π REPORTING BUGS π
found a bug? report it to <bugs@gnutls.org>. they're waiting, fr fr.
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, take it, share it, 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, go visit:
<https://www.gnutls.org/manual/>
iykyk π
and that's the whole page, bestie!! this was gnutls manual page gnutls_pkcs11_token_set_pin(3), straight out of GnuTLS 3.8.13 β go forth and rotate those PINs responsibly ππβ¨
π¦ 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