Gcr.Certificate.prototype.get_subject_part
function get_subject_part(part: String): String { // Gjs wrapper for gcr_certificate_get_subject_part() }
Get a part of the DN of the subject 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.
- part
a DN type string or OID.
- Returns
the allocated part of the subject DN, or null if no such part is present.