1gnutls_certificate_get_ours(3)      gnutls      gnutls_certificate_get_ours(3)
2
3
4

NAME

6       gnutls_certificate_get_ours - API function
7

SYNOPSIS

9       #include <gnutls/gnutls.h>
10
11       const   gnutls_datum_t  *  gnutls_certificate_get_ours(gnutls_session_t
12       session);
13

ARGUMENTS

15       gnutls_session_t session
16                   is a gnutls session
17

DESCRIPTION

19       Gets the certificate as sent to the peer in the  last  handshake.   The
20       certificate  is  in  raw  (DER)  format.   No certificate list is being
21       returned. Only the first certificate.
22
23       This function returns the certificate that  was  sent  in  the  current
24       handshake.  In  subsequent  resumed  sessions this function will return
25       NULL. That differs  from  gnutls_certificate_get_peers()  which  always
26       returns the peer's certificate used in the original session.
27

RETURNS

29       a  pointer  to  a gnutls_datum_t containing our certificate, or NULL in
30       case of an error or if no certificate was used.
31

REPORTING BUGS

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

SEE ALSO

44       The full documentation for gnutls is maintained as  a  Texinfo  manual.
45       If  the /usr/share/doc/gnutls/ directory does not contain the HTML form
46       visit
47
48       https://www.gnutls.org/manual/
49
50gnutls                              3.6.11      gnutls_certificate_get_ours(3)
Impressum