Gio.TlsClientConnection.prototype.get_accepted_cas

function get_accepted_cas(): Array(Array(void)) {
    // Gjs wrapper for g_tls_client_connection_get_accepted_cas()
}
  

Gets the list of distinguished names of the Certificate Authorities that the server will accept certificates from. This will be set during the TLS handshake if the server requests a certificate. Otherwise, it will be null.

Each item in the list is a GLib.ByteArray which contains the complete subject DN of the certificate authority.

Since 2.28

Returns

the list of CA DNs. You should unref each element with GLib.byte_array_unref and then the free the list with GLib.List.free.