- public int certificate_compare (Comparable? first, Comparable? other)
- public uint8[]? fingerprint_from_attributes (Attributes attrs, ChecksumType checksum_type)
Create a key fingerprint for a certificate, public key or private
key.
- public uint8[]? fingerprint_from_subject_public_key_info (uint8[] key_info, ChecksumType checksum_type)
Create a key fingerprint for a DER encoded subjectPublicKeyInfo.
- public Icon icon_for_token (TokenInfo token_info)
Get an appropriate icon for the token
- public List<Importer> importer_create_for_parsed (Parsed parsed)
- public List<Importer> importer_queue_and_filter_for_parsed (List<Importer> importers, Parsed parsed)
- public void importer_register (Type importer_type, Attributes attrs)
- public void importer_register_well_known ()
- public void mock_prompter_disconnect ()
Disconnect the mock prompter
- public void mock_prompter_expect_close ()
Queue an expected response on the mock prompter.
- public void mock_prompter_expect_confirm_cancel ()
Queue an expected response on the mock prompter.
- public void mock_prompter_expect_password_cancel ()
Queue an expected response on the mock prompter.
- public uint mock_prompter_get_delay_msec ()
Get the delay in milliseconds before the mock prompter completes an
expected prompt.
- public bool mock_prompter_is_expecting ()
Check if the mock prompter is expecting a response.
- public bool mock_prompter_is_prompting ()
Check if the mock prompter is showing any prompts.
- public void mock_prompter_set_delay_msec (uint delay_msec)
Set the delay in milliseconds before the mock prompter completes an
expected prompt.
- public unowned string mock_prompter_start ()
Start the mock prompter.
- public void mock_prompter_stop ()
Stop the mock prompter.
- public void parsed_unref (void* parsed)
Unreferences a parsed item which was referenced with
@ref
- public void pkcs11_add_module (Module module)
Add a Module to the list of PKCS#11
modules that are used by the GCR library.
- public bool pkcs11_add_module_from_file (string module_path, void* unused) throws Error
Initialize a PKCS#11 module and add it to the modules that are used
by the GCR library.
- public List<Module> pkcs11_get_modules ()
List all the PKCS#11 modules that are used by the GCR library.
- public List<Slot> pkcs11_get_trust_lookup_slots ()
List all the PKCS#11 slots that are used by the GCR library for
lookup of trust assertions.
- public unowned string[]? pkcs11_get_trust_lookup_uris ()
Get the PKCS#11 URIs that are used to identify which slots to use
for lookup trust assertions.
- public Slot? pkcs11_get_trust_store_slot ()
Selects an appropriate PKCS#11 slot to store trust assertions.
- public unowned string? pkcs11_get_trust_store_uri ()
Get the PKCS#11 URI that is used to identify which slot to use for
storing trust storage.
- public bool pkcs11_initialize (Cancellable? cancellable = null) throws Error
Asynchronously initialize the registered PKCS#11 modules.
- public async bool pkcs11_initialize_async (Cancellable? cancellable) throws Error
Asynchronously initialize the registered PKCS#11 modules.
- public void pkcs11_set_modules (List<Module> modules)
Set the list of PKCS#11 modules that are used by the GCR library.
- public void pkcs11_set_trust_lookup_uris (string? pkcs11_uris)
Set the PKCS#11 URIs that are used to identify which slots to use
for lookup of trust assertions.
- public void pkcs11_set_trust_store_uri (string? pkcs11_uri)
Set the PKCS#11 URI that is used to identify which slot to use for
storing trust assertions.
- public bool trust_add_pinned_certificate (Certificate certificate, string purpose, string peer, Cancellable? cancellable = null) throws Error
Add a pinned certificate
for connections to peer
for purpose
.
- public async bool trust_add_pinned_certificate_async (Certificate certificate, string purpose, string peer, Cancellable? cancellable) throws Error
Add a pinned certificate for communication with peer
for purpose
.
- public bool trust_is_certificate_anchored (Certificate certificate, string purpose, Cancellable? cancellable = null) throws Error
Check if the certificate
is a trust anchor for the
given purpose
.
- public async bool trust_is_certificate_anchored_async (Certificate certificate, string purpose, Cancellable? cancellable) throws Error
Check if the certificate
is a trust anchor for the
given purpose
.
- public bool trust_is_certificate_pinned (Certificate certificate, string purpose, string peer, Cancellable? cancellable = null) throws Error
Check if certificate
is pinned for purpose
to communicate with peer
.
- public async bool trust_is_certificate_pinned_async (Certificate certificate, string purpose, string peer, Cancellable? cancellable) throws Error
Check if certificate
is pinned for purpose
to communicate with peer
.
- public bool trust_remove_pinned_certificate (Certificate certificate, string purpose, string peer, Cancellable? cancellable = null) throws Error
Remove a pinned certificate for communication with peer
for purpose
.
- public async bool trust_remove_pinned_certificate_async (Certificate certificate, string purpose, string peer, Cancellable? cancellable) throws Error
Remove a pinned certificate for communication with peer
for purpose
.