public static void Create() { INIFile.Write("settings", "did", "0000000000000000"); INIFile.Write("settings", "firmver", "0.0.0-0"); INIFile.Write("settings", "eid", "lp1"); INIFile.Write("settings", "cert", Directory.GetCurrentDirectory() + "/nx_tls_client_cert.pfx"); }
public static void Create() { INIFile.Write("settings", "did", "0000000000000000"); INIFile.Write("settings", "firmver", "0.0.0-0"); INIFile.Write("settings", "eid", "lp1"); INIFile.Write("settings", "cert", Path.Combine(Application.StartupPath, "nx_tls_client_cert.pfx")); }
private void saveBut_Click(object sender, EventArgs e) { INIFile.Write("settings", "did", didText.Text); INIFile.Write("settings", "firmver", firmText.Text); INIFile.Write("settings", "eid", eidText.Text); INIFile.Write("settings", "cert", certText.Text); Close(); }
public static void Create() { for (int i = 0; i < MAXKEYS; i++) { INIFile.Write("keys", "MK" + i.ToString("D2"), string.Empty); } INIFile.Write("keys", "keyseed", string.Empty); INIFile.Write("keys", "kekseed", string.Empty); INIFile.Write("keys", "akaeksrc", string.Empty); INIFile.Write("keys", "okaeksrc", string.Empty); INIFile.Write("keys", "skaeksrc", string.Empty); INIFile.Write("keys", "headkey", string.Empty); }
private void saveKeysBut_Click(object sender, EventArgs e) { int i = 0; foreach (TextBox txt in mkTxts) { INIFile.Write("keys", "MK" + i.ToString("D2"), txt.Text); i++; } INIFile.Write("keys", "keyseed", keySrcTxt.Text); INIFile.Write("keys", "kekseed", kekSrcTxt.Text); INIFile.Write("keys", "akaeksrc", akaekTxt.Text); INIFile.Write("keys", "okaeksrc", okaekTxt.Text); INIFile.Write("keys", "skaeksrc", skaekTxt.Text); INIFile.Write("keys", "headkey", headKeyText.Text); Close(); }