Add a pinned certificate for communication with 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.
When the operation is finished, callback will be called. You can then call [[email protected]_add_pinned_certificate_finish] to get the result of the operation.
certificate | |
purpose |
the purpose string |
peer |
the peer for this pinned certificate |
cancellable |
a Cancellable |
callback |
a TaskReadyCallback to call when the operation completes |
user_data |
the data to pass to callback function |