Blame doc/functions/gnutls_certificate_type_get

Packit aea12f
Packit aea12f
Packit aea12f
Packit aea12f
Packit aea12f
@deftypefun {gnutls_certificate_type_t} {gnutls_certificate_type_get} (gnutls_session_t @var{session})
Packit aea12f
@var{session}: is a @code{gnutls_session_t}  type.
Packit aea12f
Packit aea12f
This function returns the type of the certificate that is negotiated
Packit aea12f
for this side to send to the peer. The certificate type is by default
Packit aea12f
X.509, unless an alternative certificate type is enabled by
Packit aea12f
@code{gnutls_init()}  and negotiated during the session.
Packit aea12f
Packit aea12f
Resumed sessions will return the certificate type that was negotiated
Packit aea12f
and used in the original session.
Packit aea12f
Packit aea12f
As of version 3.6.4 it is recommended to use
Packit aea12f
@code{gnutls_certificate_type_get2()}  which is more fine-grained.
Packit aea12f
Packit aea12f
@strong{Returns:} the currently used @code{gnutls_certificate_type_t}  certificate
Packit aea12f
type as negotiated for 'our' side of the connection.
Packit aea12f
@end deftypefun