1gnutls_certificate_get_peers(3) gnutls gnutls_certificate_get_peers(3)
2
3
4
6 gnutls_certificate_get_peers - This function returns the peer's raw
7 certificate
8
10 #include <gnutls/gnutls.h>
11
12 const gnutls_datum_t * gnutls_certificate_get_peers(gnutls_session_t
13 session, unsigned int * list_size);
14
16 gnutls_session_t session
17 is a gnutls session
18
19 unsigned int * list_size
20 is the length of the certificate list
21
23 This function will return the peer's raw certificate (chain) as sent by
24 the peer. These certificates are in raw format (DER encoded for X.509).
25 In case of a X.509 then a certificate list may be present. The first
26 certificate in the list is the peer's certificate, following the
27 issuer's certificate, then the issuer's issuer etc.
28
29 In case of OpenPGP keys a single key will be returned in raw format.
30
31 Returns NULL in case of an error, or if no certificate was sent.
32
34 Report bugs to <bug-gnutls@gnu.org>.
35
37 Copyright © 2006 Free Software Foundation.
38 Permission is granted to make and distribute verbatim copies of this
39 manual provided the copyright notice and this permission notice are
40 preserved on all copies.
41
43 The full documentation for gnutls is maintained as a Texinfo manual.
44 If the info and gnutls programs are properly installed at your site,
45 the command
46
47 info gnutls
48
49 should give you access to the complete manual.
50
51
52
53gnutls 1.6.3 gnutls_certificate_get_peers(3)