Blame doc/functions/gnutls_x509_crq_get_tlsfeatures

Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
@deftypefun {int} {gnutls_x509_crq_get_tlsfeatures} (gnutls_x509_crq_t @var{crq}, gnutls_x509_tlsfeatures_t @var{features}, unsigned int @var{flags}, unsigned int * @var{critical})
Packit Service 4684c1
@var{crq}: An X.509 certificate request
Packit Service 4684c1
Packit Service 4684c1
@var{features}: If the function succeeds, the
Packit Service 4684c1
features will be stored in this variable.
Packit Service 4684c1
Packit Service 4684c1
@var{flags}: zero or @code{GNUTLS_EXT_FLAG_APPEND} 
Packit Service 4684c1
Packit Service 4684c1
@var{critical}: the extension status
Packit Service 4684c1
Packit Service 4684c1
This function will get the X.509 TLS features
Packit Service 4684c1
extension structure from the certificate request.
Packit Service 4684c1
The returned structure needs to be freed using
Packit Service 4684c1
@code{gnutls_x509_tlsfeatures_deinit()} .
Packit Service 4684c1
Packit Service 4684c1
When the  @code{flags} is set to @code{GNUTLS_EXT_FLAG_APPEND} ,
Packit Service 4684c1
then if the  @code{features} structure is empty this function will behave
Packit Service 4684c1
identically as if the flag was not set. Otherwise if there are elements 
Packit Service 4684c1
in the  @code{features} structure then they will be merged with.
Packit Service 4684c1
Packit Service 4684c1
Note that  @code{features} must be initialized prior to calling this function.
Packit Service 4684c1
Packit Service 4684c1
@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS}  (0) is returned,
Packit Service 4684c1
otherwise a negative error value.
Packit Service 4684c1
Packit Service 4684c1
@strong{Since:} 3.5.1
Packit Service 4684c1
@end deftypefun