1gnutls_x509_crt_get_fingerprint(3)  gnutls  gnutls_x509_crt_get_fingerprint(3)
2
3
4

NAME

6       gnutls_x509_crt_get_fingerprint  -  This  function returns the Certifi‐
7       cate's fingerprint
8

SYNOPSIS

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

ARGUMENTS

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

DESCRIPTION

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

RETURNS

35       GNUTLS_E_SHORT_MEMORY_BUFFER if the provided buffer is not long enough,
36       and in that case the *sizeof_buf will  be  updated  with  the  required
37       size.  On success 0 is returned.
38

REPORTING BUGS

40       Report    bugs    to    <bug-gnutls@gnu.org>.     GnuTLS   home   page:
41       http://www.gnu.org/software/gnutls/ General help  using  GNU  software:
42       http://www.gnu.org/gethelp/
43
45       Copyright © 2008 Free Software Foundation.
46       Copying  and  distribution  of this file, with or without modification,
47       are permitted in any medium  without  royalty  provided  the  copyright
48       notice and this notice are preserved.
49

SEE ALSO

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