Debian Codegraph @

doc/functions/gnutls_certificate_get_ours

raw
1
2
3
4
5 @deftypefun {const gnutls_datum_t *} {gnutls_certificate_get_ours} (gnutls_session_t @var{session})
6 @var{session}: is a gnutls session
7
8 Gets the certificate as sent to the peer in the last handshake.
9 The certificate is in raw (DER) format. No certificate
10 list is being returned. Only the first certificate.
11
12 This function returns the certificate that was sent in the current
13 handshake. In subsequent resumed sessions this function will return
14 @code{NULL} . That differs from @code{gnutls_certificate_get_peers()} which always
15 returns the peer's certificate used in the original session.
16
17 @strong{Returns:} a pointer to a @code{gnutls_datum_t} containing our
18 certificate, or @code{NULL} in case of an error or if no certificate
19 was used.
20 @end deftypefun