blob: 5d2f771697a3ee15fcf62f7b1c6c3ee13f3ba081 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
@deftypefun {int} {gnutls_x509_ext_import_tlsfeatures} (const gnutls_datum_t * @var{ext}, gnutls_x509_tlsfeatures_t @var{f}, unsigned int @var{flags})
@var{ext}: The DER-encoded extension data
@var{f}: The features structure
@var{flags}: zero or @code{GNUTLS_EXT_FLAG_APPEND}
This function will export the features in the provided DER-encoded
TLS Features PKIX extension, to a @code{gnutls_x509_tlsfeatures_t} type. @code{f} must be initialized.
When the @code{flags} is set to @code{GNUTLS_EXT_FLAG_APPEND} ,
then if the @code{features} structure is empty this function will behave
identically as if the flag was not set. Otherwise if there are elements
in the @code{features} structure then they will be merged with.
@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS} (0) is returned, otherwise a negative error value.
@strong{Since:} 3.5.1
@end deftypefun
|