gnutls_random_art(3)
β¨ gnutls_random_art(3) β¨
okay bestie, so this one lives in the gnutls manual, and it's genuinely one of the cutest things in the whole library ngl π
πΈ NAME πΈ
gnutls_random_art β API function
like... it makes art. from a fingerprint. no cap π¨
π¦ SYNOPSIS π¦
#include <gnutls/gnutls.h>
int gnutls_random_art(gnutls_random_art_t type, const char * key_type,
unsigned int key_size, void * fpr, size_t fpr_size, gnutls_datum_t *
art);
π ARGUMENTS π
gnutls_random_art_t typeβ the vibe of the random art you want. rn the only one that's supported isGNUTLS_RANDOM_ART_OPENSSH, so that's the one, periodt β¨const char * key_typeβ what kind of key we're working with (RSA,DSA, etc.) πunsigned int key_sizeβ how big the key is, measured in bitsvoid * fprβ the fingerprint of the key itselfsize_t fpr_sizeβ how big that fingerprint isgnutls_datum_t * artβ the random art that comes back out π
π DESCRIPTION π
so the whole ~thing~ here: this function takes a fingerprint you hand it and converts it into an "artistic" image. iconic behaviour honestly π«Ά
and important detail bestie: the returned image is allocated using gnutls_malloc(), and it is null-terminated β but art->size will not count that terminating null. so don't let that trip you up, iykyk π
β RETURNS β
if everything goes off without a hitch you get GNUTLS_E_SUCCESS (which is 0), and if not, you get an error code back. slay either way π
π REPORTING BUGS π
found a bug? tell the girlies at <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/
okay that's the whole page bestie, every last flag and fact, no notes π
and that's a wrap on the gnutls manual, version 3.8.13 β mwah, go make some random art, you absolute icon πβ¨π
π¦ 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