From 7999a292e1652ef4d4a9bf1306b8a6b9672ebdaf Mon Sep 17 00:00:00 2001 From: Frederik Date: Tue, 6 Feb 2018 15:28:04 +0100 Subject: [PATCH 1/4] Quickinstaller: only try to retrieve lastname e.o. when there was no error fetching it --- installers/quickinstaller/QuickInstaller.nsi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/installers/quickinstaller/QuickInstaller.nsi b/installers/quickinstaller/QuickInstaller.nsi index d3129bee2..f462aa5f0 100644 --- a/installers/quickinstaller/QuickInstaller.nsi +++ b/installers/quickinstaller/QuickInstaller.nsi @@ -769,15 +769,15 @@ Function nsdCardData beid::ReadCardData Pop $retval - Pop $lastname - Pop $firstletterthirdname - Pop $firstname - ;for testing ;StrCpy $retval 004180 ${If} $retval == '0' + Pop $lastname + Pop $firstletterthirdname + Pop $firstname + ;all went well, show a succes message on this final page ${NSD_CreateLabel} 0 40% 100% 36u "$(ls_testcomplete_pre) $firstname $(ls_testcomplete_post)" Pop $Label From 5f788a4b545e36cea27a8f8ccf4a1e9921c9f0b6 Mon Sep 17 00:00:00 2001 From: Frederik Date: Mon, 5 Mar 2018 15:34:02 +0100 Subject: [PATCH 2/4] Windows certreg tool: Fixed re-using of freed pointer --- plugins_tools/certreg/certreg.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins_tools/certreg/certreg.c b/plugins_tools/certreg/certreg.c index f634f26b6..52a90d33f 100644 --- a/plugins_tools/certreg/certreg.c +++ b/plugins_tools/certreg/certreg.c @@ -137,8 +137,9 @@ BOOL StoreUserCerts (PCCERT_CONTEXT pCertContext, unsigned char KeyUsageBits, BY //QMessageBox::information(NULL,strCaption,strMessage); } } - //pPrevCert = NULL; - //continue; + //pDesiredCert and pPrevCert are freed, so set pPrevCert = NULL and search again + pPrevCert = NULL; + continue; } } pPrevCert = pDesiredCert; From b25fd1549d48af8209dd14c9ddf95c94f0120e87 Mon Sep 17 00:00:00 2001 From: Frederik Date: Mon, 5 Mar 2018 15:55:27 +0100 Subject: [PATCH 3/4] updated signing script for certreg tool --- scripts/windows/sign_certreg.bat | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/windows/sign_certreg.bat b/scripts/windows/sign_certreg.bat index 967f15b0d..e5d130d1b 100644 --- a/scripts/windows/sign_certreg.bat +++ b/scripts/windows/sign_certreg.bat @@ -12,12 +12,16 @@ set OUR_CURRENT_PATH="%cd%" @echo OUR_CURRENT_PATH = %OUR_CURRENT_PATH% +set MDRVCERTPATH=%~dp0..\..\cardcomm\minidriver\makemsi + ::need current dir to be pointing at the one of the wxs files, or light.exe can't find the paths @cd %~dp0..\..\installers\eid-mw\Windows @if %ERRORLEVEL%==1 goto ::sign the certreg tool @echo [INFO] sign the certreg tool -%SIGNTOOL_PATH%\SignTool.exe sign /n "FedICT - BE0367302178" /t http://timestamp.verisign.com/scripts/timestamp.dll /v "%~dp0..\..\plugins_tools\certreg\Release\certreg.exe" +::%SIGNTOOL_PATH%\SignTool.exe sign /n "FedICT - BE0367302178" /t http://timestamp.verisign.com/scripts/timestamp.dll /v "%~dp0..\..\plugins_tools\certreg\Release\certreg.exe" +"%SIGNTOOL_PATH%\signtool" sign /as /fd SHA256 /ac "%MDRVCERTPATH%\MSCV-GlobalSign Root CA.cer" /s MY /n "Fedict" /sha1 "2259EF223A51E91964D7F4695706091194E018BB" /tr http://timestamp.globalsign.com/?signature=sha2 /td SHA256 /v "%~dp0..\..\plugins_tools\certreg\Release\certreg.exe" + @if "%ERRORLEVEL%" == "1" goto signtool_failed @echo [INFO] copy the certreg tool copy %~dp0..\..\plugins_tools\certreg\Release\certreg.exe %~dp0 From 22e2f1ae865d09fe0e34e6936d835dbeabe7161f Mon Sep 17 00:00:00 2001 From: Frederik Date: Tue, 6 Mar 2018 08:38:05 +0100 Subject: [PATCH 4/4] updated certreg/certreg.vcxproj to VS2015 --- plugins_tools/certreg/certreg.vcxproj | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins_tools/certreg/certreg.vcxproj b/plugins_tools/certreg/certreg.vcxproj index c6650f571..dc5df9b58 100644 --- a/plugins_tools/certreg/certreg.vcxproj +++ b/plugins_tools/certreg/certreg.vcxproj @@ -1,5 +1,5 @@  - + Debug @@ -20,12 +20,12 @@ Application MultiByte true - v110 + v140 Application MultiByte - v110 + v140