Esempio n. 1
0
 public NameConstraintsExt(GlobalName g, bool permitted)
 {
     NativeName = "nameConstraints";
     Value      = "";
     if (permitted)
     {
         if (g.NameType != GeneralNameHook.IP)
         {
             Value = "permitted;" + g.Value;
         }
     }
     else
     {
         if (g.NameType != GeneralNameHook.IP)
         {
             Value = "excluded;" + g.Value;
         }
     }
 }
Esempio n. 2
0
 private void buttonX1_Click(object sender, EventArgs e)
 {
     try
     {
         if (superValidator1.Validate())
         {
             if (comboBoxEx2.SelectedItem != null)
             {
                 GName = new GlobalName((GeneralNameHook)((ComboItem)comboBoxEx2.SelectedItem).Value, textBoxX1.Text);
                 this.Close();
             }
             else
             {
                 MessageBoxEx.Show("Please select a type", "Alert", MessageBoxButtons.OK, MessageBoxIcon.Information);
             }
         }
     }
     catch (Exception ex)
     {
         Log.ShowOperationFailed(ex, "X509 Global Name");
     }
 }