TLSContext.peerValidationCallback

An optional user callback for peer validation.

This callback will be called for each peer and each certificate of its certificate chain to allow overriding the validation decision based on the selected peerValidationMode (e.g. to allow invalid certificates or to reject valid ones). This is mainly useful for presenting the user with a dialog in case of untrusted or mismatching certificates.

  1. TLSPeerValidationCallback peerValidationCallback [@property setter]
    interface TLSContext
    @safe @property
    void
    peerValidationCallback
  2. inout(TLSPeerValidationCallback) peerValidationCallback [@property getter]

Meta