Blame doc/functions/gnutls_certificate_get_ours

Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
@deftypefun {const gnutls_datum_t *} {gnutls_certificate_get_ours} (gnutls_session_t @var{session})
Packit Service 4684c1
@var{session}: is a gnutls session
Packit Service 4684c1
Packit Service 4684c1
Gets the certificate as sent to the peer in the last handshake.
Packit Service 4684c1
The certificate is in raw (DER) format.  No certificate
Packit Service 4684c1
list is being returned. Only the first certificate.
Packit Service 4684c1
Packit Service 4684c1
This function returns the certificate that was sent in the current
Packit Service 4684c1
handshake. In subsequent resumed sessions this function will return
Packit Service 4684c1
@code{NULL} . That differs from @code{gnutls_certificate_get_peers()}  which always
Packit Service 4684c1
returns the peer's certificate used in the original session.
Packit Service 4684c1
Packit Service 4684c1
@strong{Returns:} a pointer to a @code{gnutls_datum_t}  containing our
Packit Service 4684c1
certificate, or @code{NULL}  in case of an error or if no certificate
Packit Service 4684c1
was used.
Packit Service 4684c1
@end deftypefun