Method

GioTlsCertificateget_subject_name

since: 2.70

Declaration

gchar*
g_tls_certificate_get_subject_name (
  GTlsCertificate* cert
)

Description

Returns the subject name from the certificate.

Available since: 2.70

Return value

Type: gchar*

The subject name, or NULL if it’s not available.

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.