public static X509Object Create(CertificateTrustList ctl, string storeName, StoreLocation storeLocation)
 {
     if (ctl == null) throw new ArgumentNullException("ctl");
     return new X509Object(storeName, storeLocation)
     {
         Value = ctl,
         Data = ctl.RawData
     };
 }
Beispiel #2
0
 public static void ShowCtlDialog(this CertificateTrustList ctl, IntPtr owner, string title)
 {
     NativeMethods.CryptUIDlgViewContext(
         CapiConstants.CERT_STORE_CTL_CONTEXT,
         ctl.SafeHandle,
         owner,
         title,
         0,
         IntPtr.Zero);
 }
 private string GetCtlDisplayName(CertificateTrustList ctl)
 {
     if (!string.IsNullOrEmpty(ctl.FriendlyName))
         return ctl.FriendlyName;
     return "Trust List";
 }
 public CapiCtlWrapper(CertificateTrustList certificateTrustList)
 {
     ctl = certificateTrustList;
 }
Beispiel #5
0
 public static void ShowCtlDialog(this CertificateTrustList ctl, IntPtr owner)
 {
     ShowCtlDialog(ctl, owner, null);
 }
Beispiel #6
0
 public static void ShowCtlDialog(this CertificateTrustList ctl, string title)
 {
     ShowCtlDialog(ctl, IntPtr.Zero, title);
 }
Beispiel #7
0
 public static void ShowCtlDialog(this CertificateTrustList ctl)
 {
     ShowCtlDialog(ctl, IntPtr.Zero, null);
 }