Function

Valentcertificate_get_common_name

unstable since: 1.0

Declaration [src]

const char*
valent_certificate_get_common_name (
  GTlsCertificate* certificate
)

Description [src]

Get the common name from certificate, which by convention in KDE Connect is the single source of truth for a device’s ID.

Available since: 1.0

Parameters

certificate

Type: GTlsCertificate

A GTlsCertificate.

The data is owned by the caller of the function.

Return value

Type: const char*

The certificate ID.

The data is owned by the called function.
The return value can be NULL.
The value is a NUL terminated UTF-8 string.