Blame doc/functions/gnutls_x509_rdn_get_oid

Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
@deftypefun {int} {gnutls_x509_rdn_get_oid} (const gnutls_datum_t * @var{idn}, unsigned @var{indx}, void * @var{buf}, size_t * @var{buf_size})
Packit Service 4684c1
@var{idn}: should contain a DER encoded RDN sequence
Packit Service 4684c1
Packit Service 4684c1
@var{indx}: Indicates which OID to return. Use 0 for the first one.
Packit Service 4684c1
Packit Service 4684c1
@var{buf}: a pointer to a structure to hold the peer's name OID
Packit Service 4684c1
Packit Service 4684c1
@var{buf_size}: holds the size of  @code{buf} 
Packit Service 4684c1
Packit Service 4684c1
This function will return the specified Object identifier, of the
Packit Service 4684c1
RDN sequence.
Packit Service 4684c1
Packit Service 4684c1
@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS}  (0) is returned, or
Packit Service 4684c1
@code{GNUTLS_E_SHORT_MEMORY_BUFFER}  is returned and * @code{buf_size} is
Packit Service 4684c1
updated if the provided buffer is not long enough, otherwise a
Packit Service 4684c1
negative error value.
Packit Service 4684c1
Packit Service 4684c1
@strong{Since:} 2.4.0
Packit Service 4684c1
@end deftypefun