/// <summary>
 /// Constructor
 /// </summary>
 /// <param name="certContext">Cert context</param>
 internal CertContext(SspiCertContext certContext)
 {
     this.CertEncodingType = certContext.dwCertEncodingType;
     this.CertEncoded      = new byte[certContext.cbCertEncoded];
     Marshal.Copy(certContext.pbCertEncoded, this.CertEncoded, 0, this.CertEncoded.Length);
     this.pCertInfo  = certContext.pCertInfo;
     this.hCertStore = certContext.hCertStore;
 }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="certContext">Cert context</param>    
 internal CertContext(SspiCertContext certContext)
 {
     this.CertEncodingType = certContext.dwCertEncodingType;
     this.CertEncoded = new byte[certContext.cbCertEncoded];
     Marshal.Copy(certContext.pbCertEncoded, this.CertEncoded, 0, this.CertEncoded.Length);
     this.pCertInfo = certContext.pCertInfo;
     this.hCertStore = certContext.hCertStore;
 }