1gnutls_certificate_get_peers(3) gnutls gnutls_certificate_get_peers(3)
2
3
4
6 gnutls_certificate_get_peers - return the peer's raw certificate
7
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
15 gnutls_session_t session
16 is a gnutls session
17
18 unsigned int * list_size
19 is the length of the certificate list
20
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
31 return a pointer to a gnutls_datum_t containing our certificates, or
32 NULL in case of an error or if no certificate was used.
33
35 Report bugs to <bug-gnutls@gnu.org>. GnuTLS home page:
36 http://www.gnu.org/software/gnutls/ General help using GNU software:
37 http://www.gnu.org/gethelp/
38
40 Copyright © 2008 Free Software Foundation.
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
46 The full documentation for gnutls is maintained as a Texinfo manual.
47 If the info and gnutls programs are properly installed at your site,
48 the command
49
50 info gnutls
51
52 should give you access to the complete manual.
53
54
55
56gnutls 2.8.6 gnutls_certificate_get_peers(3)