Blame doc/functions/gnutls_x509_crt_get_extension_oid

Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
@deftypefun {int} {gnutls_x509_crt_get_extension_oid} (gnutls_x509_crt_t @var{cert}, unsigned @var{indx}, void * @var{oid}, size_t * @var{oid_size})
Packit Service 4684c1
@var{cert}: should contain a @code{gnutls_x509_crt_t}  type
Packit Service 4684c1
Packit Service 4684c1
@var{indx}: Specifies which extension OID to send. Use (0) to get the first one.
Packit Service 4684c1
Packit Service 4684c1
@var{oid}: a pointer to a structure to hold the OID (may be null)
Packit Service 4684c1
Packit Service 4684c1
@var{oid_size}: initially holds the size of  @code{oid} 
Packit Service 4684c1
Packit Service 4684c1
This function will return the requested extension OID in the certificate.
Packit Service 4684c1
The extension OID will be stored as a string in the provided buffer.
Packit Service 4684c1
Packit Service 4684c1
The  @code{oid} returned will be null terminated, although  @code{oid_size} will not
Packit Service 4684c1
account for the trailing null.
Packit Service 4684c1
Packit Service 4684c1
@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS}  (0) is returned,
Packit Service 4684c1
otherwise a negative error code is returned.  If you 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
@end deftypefun