/// <summary> /// Sets the certificate verification mode and callback - calls SSL_CTX_set_verify /// </summary> /// <param name="mode"></param> /// <param name="callback"></param> public void SetVerify(VerifyMode mode, RemoteCertificateValidationHandler callback) { this._verifyCertCallbackThunk = new VerifyCertCallbackThunk(callback); Native.SSL_CTX_set_verify(this.ptr, (int)mode, _verifyCertCallbackThunk.Callback); }