Blame doc/functions/gnutls_x509_ext_export_key_purposes

Packit aea12f
Packit aea12f
Packit aea12f
Packit aea12f
Packit aea12f
@deftypefun {int} {gnutls_x509_ext_export_key_purposes} (gnutls_x509_key_purposes_t @var{p}, gnutls_datum_t * @var{ext})
Packit aea12f
@var{p}: The key purposes
Packit aea12f
Packit aea12f
@var{ext}: The DER-encoded extension data; must be freed using @code{gnutls_free()} .
Packit aea12f
Packit aea12f
This function will convert the key purposes type to a
Packit aea12f
DER-encoded PKIX ExtKeyUsageSyntax (2.5.29.37) extension. The output data in 
Packit aea12f
 @code{ext} will be allocated using @code{gnutls_malloc()} .
Packit aea12f
Packit aea12f
@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS}  (0) is returned, otherwise a negative error value.
Packit aea12f
Packit aea12f
@strong{Since:} 3.3.0
Packit aea12f
@end deftypefun