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

NAME

6       gnutls_x509_crt_get_fingerprint - API function
7

SYNOPSIS

9       #include <gnutls/x509.h>
10
11       int       gnutls_x509_crt_get_fingerprint(gnutls_x509_crt_t       cert,
12       gnutls_digest_algorithm_t algo, void * buf, size_t * buf_size);
13

ARGUMENTS

15       gnutls_x509_crt_t cert
16                   should contain a gnutls_x509_crt_t type
17
18       gnutls_digest_algorithm_t algo
19                   is a digest algorithm
20
21       void * buf  a pointer to a structure to hold the  fingerprint  (may  be
22                   null)
23
24       size_t * buf_size
25                   initially holds the size of  buf
26

DESCRIPTION

28       This  function will calculate and copy the certificate's fingerprint in
29       the provided buffer. The fingerprint is a hash of the DER-encoded  data
30       of the certificate.
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 *buf_size will be updated with the required  size.
37       On success 0 is returned.
38

REPORTING BUGS

40       Report bugs to <bugs@gnutls.org>.
41       Home page: https://www.gnutls.org
42
43
45       Copyright © 2001-2020 Free Software Foundation, Inc., and others.
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 /usr/share/doc/gnutls/ directory does not contain the HTML  form
53       visit
54
55       https://www.gnutls.org/manual/
56
57gnutls                              3.6.13  gnutls_x509_crt_get_fingerprint(3)
Impressum