示例#1
0
 /// <summary>
 ///     Sets the certificate store for the context - calls SSL_CTX_set_cert_store
 ///     The X509Store object and contents will be freed when the context is disposed.
 ///     Ensure that the store object and it's contents have IsOwner set to false
 ///     before assigning them into the context.
 /// </summary>
 /// <param name="store"></param>
 public void SetCertificateStore(X509Store store)
 {
     store.AddRef();
     Native.SSL_CTX_set_cert_store(ptr, store.Handle);
 }