Esempio n. 1
0
        [System.Security.SecuritySafeCritical]  // auto-generated
        public X509Certificate(X509Certificate cert) : this()
        {
            if (cert == null)
            {
                throw new ArgumentNullException("cert");
            }
            Contract.EndContractBlock();

            if (cert.m_safeCertContext.pCertContext != IntPtr.Zero)
            {
                m_safeCertContext   = cert.GetCertContextForCloning();
                m_certContextCloned = true;
            }
        }
Esempio n. 2
0
 public X509Certificate(X509Certificate cert)
     : this()
 {
     if (cert == null)
     {
         throw new ArgumentNullException("cert");
     }
     if (!(cert.m_safeCertContext.pCertContext != IntPtr.Zero))
     {
         return;
     }
     this.m_safeCertContext   = cert.GetCertContextForCloning();
     this.m_certContextCloned = true;
 }
Esempio n. 3
0
        [System.Security.SecuritySafeCritical]  // auto-generated
        public X509Certificate (X509Certificate cert):this() {
            if (cert == null)
                throw new ArgumentNullException("cert");
            Contract.EndContractBlock();

            if (cert.m_safeCertContext.pCertContext != IntPtr.Zero) {
                m_safeCertContext = cert.GetCertContextForCloning();
                m_certContextCloned = true;
            }
        }