vibe.d beta banner
get vibe.d
0.10.0

Asynchronous I/O that doesn’t get in your way, written in D

Function TLSContext.peerValidationCallback

An optional user callback for peer validation.

abstract void peerValidationCallback (
  @safe bool delegate(scope TLSPeerValidationData) callback
) @property @safe;

abstract inout @safe bool delegate(scope TLSPeerValidationData) inout peerValidationCallback() @property @safe;

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.

Authors

Sönke Ludwig

Copyright

© 2012-2014 Sönke Ludwig

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.