Blame doc/functions/gnutls_x509_crt_get_extension_by_oid2

Packit aea12f
Packit aea12f
Packit aea12f
Packit aea12f
Packit aea12f
@deftypefun {int} {gnutls_x509_crt_get_extension_by_oid2} (gnutls_x509_crt_t @var{cert}, const char * @var{oid}, unsigned @var{indx}, gnutls_datum_t * @var{output}, unsigned int * @var{critical})
Packit aea12f
@var{cert}: should contain a @code{gnutls_x509_crt_t}  type
Packit aea12f
Packit aea12f
@var{oid}: holds an Object Identified in null terminated string
Packit aea12f
Packit aea12f
@var{indx}: In case multiple same OIDs exist in the extensions, this specifies which to send. Use (0) to get the first one.
Packit aea12f
Packit aea12f
@var{output}: will hold the allocated extension data
Packit aea12f
Packit aea12f
@var{critical}: will be non-zero if the extension is marked as critical
Packit aea12f
Packit aea12f
This function will return the extension specified by the OID in the
Packit aea12f
certificate.  The extensions will be returned as binary data DER
Packit aea12f
encoded, in the provided buffer.
Packit aea12f
Packit aea12f
@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS}  (0) is returned,
Packit aea12f
otherwise a negative error code is returned. If the certificate does not
Packit aea12f
contain the specified extension
Packit aea12f
GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE will be returned.
Packit aea12f
Packit aea12f
@strong{Since:} 3.3.8
Packit aea12f
@end deftypefun