Blame doc/functions/gnutls_x509_crt_get_issuer_dn_oid

Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
@deftypefun {int} {gnutls_x509_crt_get_issuer_dn_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}: This specifies which OID to return. Use (0) to get the first one.
Packit Service 4684c1
Packit Service 4684c1
@var{oid}: a pointer to a buffer 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 extract the OIDs of the name of the Certificate
Packit Service 4684c1
issuer specified by the given index.
Packit Service 4684c1
Packit Service 4684c1
If  @code{oid} is null then only the size will be filled. 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:} @code{GNUTLS_E_SHORT_MEMORY_BUFFER}  if the provided buffer is not
Packit Service 4684c1
long enough, and in that case the  @code{buf_size} will be updated with
Packit Service 4684c1
the required size. @code{GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE}  if there
Packit Service 4684c1
are no data in the current index. On success 0 is returned.
Packit Service 4684c1
@end deftypefun