gnutls_x509_crt_get_fingerprint(3)
β¨ NAME β¨
gnutls_x509_crt_get_fingerprint β it's an API function bestie, and it's here to hand you your certificate's fingerprint π
πΈ SYNOPSIS πΈ
#include <gnutls/x509.h>
int gnutls_x509_crt_get_fingerprint(gnutls_x509_crt_t cert,
gnutls_digest_algorithm_t algo, void * buf, size_t * buf_size);
π ARGUMENTS π
gnutls_x509_crt_t certβ should contain agnutls_x509_crt_ttype, like that's the whole assignment okgnutls_digest_algorithm_t algoβ is a digest algorithm, pick your fave π¦void * bufβ a pointer to a structure to hold the fingerprint, and it may be null (we love a flexible king)size_t * buf_sizeβ initially holds the size ofbuf
π DESCRIPTION π
okay so this function will calculate and copy the certificate's fingerprint into the provided buffer. and what even is the fingerprint? it's a hash of the DER-encoded data of the certificate. iconic behavior honestly π«Ά
and if the buffer is null then only the size will be filled. no notes, she's efficient like that β¨
π RETURNS π
GNUTLS_E_SHORT_MEMORY_BUFFERif the provided buffer is not long enough β and in that case the*buf_sizewill be updated with the required size (so she tells you exactly how much room she needs, a considerate queen)- on success
0is returned. periodt. π
π REPORTING BUGS π
found something cursed? report bugs 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.
π 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, no cap π this was gnutls version 3.8.13 β go get your fingerprint, you absolute main character, iykyk πΈπ¦π
π¦ 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