int VerifyCallback(MonoBtlsX509StoreCtx storeCtx) { using (var chainImpl = new X509ChainImplBtls(storeCtx)) using (var managedChain = new X509Chain(chainImpl)) { var leaf = managedChain.ChainElements[0].Certificate; var result = ValidateCertificate(leaf, managedChain); certificateValidated = true; return(result ? 1 : 0); } }
public static X509Chain GetManagedChain(MonoBtlsX509Chain chain) { var impl = new X509ChainImplBtls(chain); return(new X509Chain(impl)); }
public static X509Chain CreateChain() { using (var impl = new X509ChainImplBtls()) return(new X509Chain(impl)); }
public static X509Chain GetManagedChain (MonoBtlsX509Chain chain) { var impl = new X509ChainImplBtls (chain); return new X509Chain (impl); }
public static X509Chain CreateChain () { using (var impl = new X509ChainImplBtls ()) return new X509Chain (impl); }