1gnutls_certificate_get_peers(3)     gnutls     gnutls_certificate_get_peers(3)
2
3
4

NAME

6       gnutls_certificate_get_peers - API function
7

SYNOPSIS

9       #include <gnutls/gnutls.h>
10
11       const  gnutls_datum_t  *  gnutls_certificate_get_peers(gnutls_session_t
12       session, unsigned int * list_size);
13

ARGUMENTS

15       gnutls_session_t          session
16                   is a gnutls session
17
18       unsigned int * list_size
19                   is the length of the certificate list (may be NULL)
20

DESCRIPTION

22       Get the peer's raw certificate (chain) as sent by the peer.  These cer‐
23       tificates  are  in  raw  format  (DER encoded for X.509).  In case of a
24       X.509 then a certificate list may be present.  The first certificate in
25       the list is the peer's certificate, following the issuer's certificate,
26       then the issuer's issuer etc.
27
28       In case of OpenPGP keys a single key will be returned in raw format.
29

RETURNS

31       a pointer to a gnutls_datum_t containing the  peer's  certificates,  or
32       NULL in case of an error or if no certificate was used.
33

REPORTING BUGS

35       Report bugs to <bugs@gnutls.org>.
36       Home page: http://www.gnutls.org
37
38
40       Copyright © 2001-2014 Free Software Foundation, Inc..
41       Copying  and  distribution  of this file, with or without modification,
42       are permitted in any medium  without  royalty  provided  the  copyright
43       notice and this notice are preserved.
44

SEE ALSO

46       The  full  documentation  for gnutls is maintained as a Texinfo manual.
47       If the /usr/share/doc/gnutls/ directory does not contain the HTML  form
48       visit
49
50       http://www.gnutls.org/manual/
51
52gnutls                              3.3.29     gnutls_certificate_get_peers(3)
Impressum