Blame doc/functions/gnutls_certificate_get_peers
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@deftypefun {const gnutls_datum_t *} {gnutls_certificate_get_peers} (gnutls_session_t @var{session}, unsigned int * @var{list_size})
|
|
Packit Service |
4684c1 |
@var{session}: is a gnutls session
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@var{list_size}: is the length of the certificate list (may be @code{NULL} )
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
Get the peer's raw certificate (chain) as sent by the peer. These
|
|
Packit Service |
4684c1 |
certificates are in raw format (DER encoded for X.509). In case of
|
|
Packit Service |
4684c1 |
a X.509 then a certificate list may be present. The list
|
|
Packit Service |
4684c1 |
is provided as sent by the server; the server must send as first
|
|
Packit Service |
4684c1 |
certificate in the list its own certificate, following the
|
|
Packit Service |
4684c1 |
issuer's certificate, then the issuer's issuer etc. However, there
|
|
Packit Service |
4684c1 |
are servers which violate this principle and thus on certain
|
|
Packit Service |
4684c1 |
occasions this may be an unsorted list.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
In resumed sessions, this function will return the peer's certificate
|
|
Packit Service |
4684c1 |
list as used in the first/original session.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@strong{Returns:} a pointer to a @code{gnutls_datum_t} containing the peer's
|
|
Packit Service |
4684c1 |
certificates, or @code{NULL} in case of an error or if no certificate
|
|
Packit Service |
4684c1 |
was used.
|
|
Packit Service |
4684c1 |
@end deftypefun
|