示例#1
0
 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);
         }
 }
示例#2
0
        public static X509Chain GetManagedChain(MonoBtlsX509Chain chain)
        {
            var impl = new X509ChainImplBtls(chain);

            return(new X509Chain(impl));
        }
示例#3
0
 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);
		}