Method

GcrCertificateget_issuer_part

Declaration [src]

gchar*
gcr_certificate_get_issuer_part (
  GcrCertificate* self,
  const gchar* part
)

Description [src]

Get a part of the DN of the issuer of this certificate.

Examples of a part might be the ‘OU’ (organizational unit) or the ‘CN’ (common name). Only the value of that part of the DN is returned.

The string returned should be freed by the caller when no longer required.

Parameters

part const gchar*
 

A DN type string or OID.

 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.

Return value

Returns: gchar*
 

The allocated part of the issuer DN, or NULL if no such part is present.

 The caller of the method takes ownership of the data, and is responsible for freeing it.
 The return value can be NULL.
 The value is a NUL terminated UTF-8 string.