Blame doc/functions/gnutls_x509_crq_get_extension_info

Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
@deftypefun {int} {gnutls_x509_crq_get_extension_info} (gnutls_x509_crq_t @var{crq}, unsigned @var{indx}, void * @var{oid}, size_t * @var{sizeof_oid}, unsigned int * @var{critical})
Packit Service 4684c1
@var{crq}: should contain a @code{gnutls_x509_crq_t}  type
Packit Service 4684c1
Packit Service 4684c1
@var{indx}: Specifies which extension number to get. Use (0) to get the first one.
Packit Service 4684c1
Packit Service 4684c1
@var{oid}: a pointer to store the OID
Packit Service 4684c1
Packit Service 4684c1
@var{sizeof_oid}: initially holds the maximum size of  @code{oid} , on return
Packit Service 4684c1
holds actual size of  @code{oid} .
Packit Service 4684c1
Packit Service 4684c1
@var{critical}: output variable with critical flag, may be NULL.
Packit Service 4684c1
Packit Service 4684c1
This function will return the requested extension OID in the
Packit Service 4684c1
certificate, and the critical flag for it.  The extension OID will
Packit Service 4684c1
be stored as a string in the provided buffer.  Use
Packit Service 4684c1
@code{gnutls_x509_crq_get_extension_data()}  to extract the data.
Packit Service 4684c1
Packit Service 4684c1
If the buffer provided is not long enough to hold the output, then
Packit Service 4684c1
* @code{sizeof_oid} is updated and @code{GNUTLS_E_SHORT_MEMORY_BUFFER}  will be
Packit Service 4684c1
returned.
Packit Service 4684c1
Packit Service 4684c1
@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS}  (0) is returned, otherwise a
Packit Service 4684c1
negative error code in case of an error.  If your have reached the
Packit Service 4684c1
last extension available @code{GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE} 
Packit Service 4684c1
will be returned.
Packit Service 4684c1
Packit Service 4684c1
@strong{Since:} 2.8.0
Packit Service 4684c1
@end deftypefun