示例#1
0
 /// <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);
 }
示例#2
0
 /// <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);
 }