1gnutls_x509_crt_get_fingerprint(3) gnutls gnutls_x509_crt_get_fingerprint(3)
2
3
4
6 gnutls_x509_crt_get_fingerprint - This function returns the Certifi‐
7 cate's fingerprint
8
10 #include <gnutls/x509.h>
11
12 int gnutls_x509_crt_get_fingerprint(gnutls_x509_crt_t cert,
13 gnutls_digest_algorithm_t algo, void * buf, size_t * sizeof_buf);
14
16 gnutls_x509_crt_t cert
17 should contain a gnutls_x509_crt_t structure
18
19 gnutls_digest_algorithm_t algo
20 is a digest algorithm
21
22 void * buf a pointer to a structure to hold the fingerprint (may be
23 null)
24
25 size_t * sizeof_buf
26 initially holds the size of buf
27
29 This function will calculate and copy the certificate's fingerprint in
30 the provided buffer.
31
32 If the buffer is null then only the size will be filled.
33
34 Returns GNUTLS_E_SHORT_MEMORY_BUFFER if the provided buffer is not long
35 enough, and in that case the *sizeof_buf will be updated with the
36 required size. On success 0 is returned.
37
39 Report bugs to <bug-gnutls@gnu.org>.
40
42 Copyright © 2006 Free Software Foundation.
43 Permission is granted to make and distribute verbatim copies of this
44 manual provided the copyright notice and this permission notice are
45 preserved on all copies.
46
48 The full documentation for gnutls is maintained as a Texinfo manual.
49 If the info and gnutls programs are properly installed at your site,
50 the command
51
52 info gnutls
53
54 should give you access to the complete manual.
55
56
57
58gnutls 1.6.3 gnutls_x509_crt_get_fingerprint(3)