1gnutls_fingerprint(3)               gnutls               gnutls_fingerprint(3)
2
3
4

NAME

6       gnutls_fingerprint  -  This  function calculates the fingerprint of the
7       given data
8

SYNOPSIS

10       #include <gnutls/gnutls.h>
11
12       int    gnutls_fingerprint(gnutls_digest_algorithm_t     algo,     const
13       gnutls_datum_t * data, void * result, size_t * result_size);
14

ARGUMENTS

16       gnutls_digest_algorithm_t algo
17                   is a digest algorithm
18
19       const gnutls_datum_t * data
20                   is the data
21
22       void * result
23                   is the place where the result will be copied (may be null).
24
25       size_t * result_size
26                   should  hold the size of the result. The actual size of the
27                   returned result will also be copied there.
28

DESCRIPTION

30       This function will calculate a fingerprint (actually a  hash),  of  the
31       given  data. The result is not printable data. You should convert it to
32       hex, or to something else printable.
33
34       This is the usual way to  calculate  a  fingerprint  of  an  X.509  DER
35       encoded certificate. Note however that the fingerprint of an OpenPGP is
36       not just a hash and cannot be calculated with this function.
37
38       Returns a negative value in case of an error.
39

REPORTING BUGS

41       Report bugs to <bug-gnutls@gnu.org>.
42
44       Copyright © 2006 Free Software Foundation.
45       Permission is granted to make and distribute verbatim  copies  of  this
46       manual  provided  the  copyright  notice and this permission notice are
47       preserved on all copies.
48

SEE ALSO

50       The full documentation for gnutls is maintained as  a  Texinfo  manual.
51       If  the  info  and gnutls programs are properly installed at your site,
52       the command
53
54              info gnutls
55
56       should give you access to the complete manual.
57
58
59
60gnutls                               1.6.3               gnutls_fingerprint(3)
Impressum