Exemplo n.º 1
0
 public static X509Object Create(CertificateRevocationList crl, string storeName, StoreLocation storeLocation)
 {
     if (crl == null) throw new ArgumentNullException("crl");
     return new X509Object(storeName, storeLocation) 
     {
         Value = crl,
         Data = crl.RawData
     };
 }
Exemplo n.º 2
0
 public static void ShowCrlDialog(this CertificateRevocationList crl, IntPtr owner, string title)
 {
     NativeMethods.CryptUIDlgViewContext(
         CapiConstants.CERT_STORE_CRL_CONTEXT,
         crl.SafeHandle,
         owner,
         title,
         0,
         IntPtr.Zero);
 }
Exemplo n.º 3
0
 private string GetCrlDisplayName(CertificateRevocationList crl)
 {
     if (!string.IsNullOrEmpty(crl.FriendlyName))
         return crl.FriendlyName;
     return FormatDistinguishedName(crl.IssuerName);
 }
Exemplo n.º 4
0
 public static void ShowCrlDialog(this CertificateRevocationList crl, IntPtr owner)
 {
     ShowCrlDialog(crl, owner, null);
 }
Exemplo n.º 5
0
 public static void ShowCrlDialog(this CertificateRevocationList crl, string title)
 {
     ShowCrlDialog(crl, IntPtr.Zero, title);
 }
Exemplo n.º 6
0
 public static void ShowCrlDialog(this CertificateRevocationList crl)
 {
     ShowCrlDialog(crl, IntPtr.Zero, null);
 }
 public CapiCrlWrapper(CertificateRevocationList certificateRevocationList)
 {
     crl = certificateRevocationList;
 }