Function

Gcr-4Gcrtrust_add_pinned_certificate

  • Add a pinned certificate for connections to peer for purpose. A pinned certificate overrides all other certificate verification and should be used with care.

    If the same pinned certificate already exists, then this operation does not add another, and succeeds without error.

    This call may block, see Gcr.trust_add_pinned_certificate_async for the non-blocking version.

    Parameters

    Returns boolean

    true if the pinned certificate is recorded successfully