예제 #1
0
        static BoringX509StoreHandle Create_internal(MonoBtlsSslCtx.BoringSslCtxHandle ctx)
        {
            var handle = mono_btls_x509_store_from_ssl_ctx(ctx.DangerousGetHandle());

            if (handle == IntPtr.Zero)
            {
                throw new MonoBtlsException();
            }
            return(new BoringX509StoreHandle(handle));
        }
예제 #2
0
 internal MonoBtlsX509Store(MonoBtlsSslCtx.BoringSslCtxHandle ctx)
     : base(Create_internal(ctx))
 {
 }