public delegate bool VerifyPeerCallback(VerifyPeerContext context)
Callback invoked with the expected targetHost and the peer's certificate.
If false is returned by this callback then it is treated as a
verification failure and the attempted connection will fail.
Invocation of the callback is blocking, so any
implementation should be light-weight.
Note that the callback can potentially be invoked multiple times,
concurrently from different threads (e.g. when multiple connections
are being created for the same credentials).
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-12 UTC."],[[["The `VerifyPeerCallback` delegate is invoked with a `VerifyPeerContext` to verify a peer's certificate and target host."],["Returning `false` from the callback signifies a verification failure, causing the connection attempt to fail."],["The callback's execution is blocking and should be lightweight, as it might be called multiple times concurrently from different threads."],["The parameter of this callback is called `context`, which is an object of type `VerifyPeerContext`."],["The function returns a boolean, where `true` means verification succeeded, and `false` means it failed."]]],[]]