@@ -21,66 +21,66 @@ index c7d4d14..7ccd379 100644
2121--- a/cie-pkcs11/CSP/IAS.cpp
2222+++ b/cie-pkcs11/CSP/IAS.cpp
2323@@ -653,11 +653,11 @@ ByteDynArray IAS::SM(ByteArray &keyEnc, ByteArray &keySig, ByteArray &apdu, Byte
24- init_func
25-
26- std::string dmp;
27- - ODS(dumpHexData(seq, dmp).c_str());
28- + ODS("%s\n", dumpHexData(seq, dmp).c_str());
29-
30- increment(seq);
31-
32- - ODS(dumpHexData(seq, dmp).c_str());
33- + ODS("%s\n", dumpHexData(seq, dmp).c_str());
34-
35- ByteDynArray smHead;
36- smHead = apdu.left(4);
24+ init_func
25+
26+ std::string dmp;
27+ - ODS(dumpHexData(seq, dmp).c_str());
28+ + ODS("%s\n", dumpHexData(seq, dmp).c_str());
29+
30+ increment(seq);
31+
32+ - ODS(dumpHexData(seq, dmp).c_str());
33+ + ODS("%s\n", dumpHexData(seq, dmp).c_str());
34+
35+ ByteDynArray smHead;
36+ smHead = apdu.left(4);
3737diff --git a/cie-pkcs11/PCSC/APDU.cpp b/cie-pkcs11/PCSC/APDU.cpp
3838index e7325d2..3fd89b9 100644
3939--- a/cie-pkcs11/PCSC/APDU.cpp
4040+++ b/cie-pkcs11/PCSC/APDU.cpp
4141@@ -10,23 +10,23 @@
42-
43- APDU::APDU() {
44- }
45- - APDU::APDU(BYTE CLA,BYTE INS,BYTE P1,BYTE P2,BYTE LC,BYTE *pData,BYTE LE) {
46- + APDU::APDU(uint8_t CLA,uint8_t INS,uint8_t P1,uint8_t P2,uint8_t LC,uint8_t *pData,uint8_t LE) {
47- init_func
48- if (LC>250) throw;
49- btINS=INS;btCLA=CLA;btP1=P1;btP2=P2;btLC=LC;pbtData=pData;btLE=LE;
50- bLC=true;bLE=true;
51- exit_func
52- }
53- - APDU::APDU(BYTE CLA,BYTE INS,BYTE P1,BYTE P2,BYTE LC,BYTE *pData) {
54- + APDU::APDU(uint8_t CLA,uint8_t INS,uint8_t P1,uint8_t P2,uint8_t LC,uint8_t *pData) {
55- if (LC>251) throw;
56- btINS=INS;btCLA=CLA;btP1=P1;btP2=P2;btLC=LC;pbtData=pData;btLE=0;
57- bLC=true;bLE=false;
58- }
59- - APDU::APDU(BYTE CLA,BYTE INS,BYTE P1,BYTE P2,BYTE LE) {
60- + APDU::APDU(uint8_t CLA,uint8_t INS,uint8_t P1,uint8_t P2,uint8_t LE) {
61- btINS=INS;btCLA=CLA;btP1=P1;btP2=P2;btLE=LE;btLC=0;
62- bLC=false;bLE=true;
63- }
64- - APDU::APDU(BYTE CLA,BYTE INS,BYTE P1,BYTE P2) {
65- + APDU::APDU(uint8_t CLA,uint8_t INS,uint8_t P1,uint8_t P2) {
66- btINS=INS;btCLA=CLA;btP1=P1;btP2=P2;btLE=0;btLC=0;
67- bLC=false;bLE=false;
68- }
42+
43+ APDU::APDU() {
44+ }
45+ - APDU::APDU(BYTE CLA,BYTE INS,BYTE P1,BYTE P2,BYTE LC,BYTE *pData,BYTE LE) {
46+ + APDU::APDU(uint8_t CLA,uint8_t INS,uint8_t P1,uint8_t P2,uint8_t LC,uint8_t *pData,uint8_t LE) {
47+ init_func
48+ if (LC>250) throw;
49+ btINS=INS;btCLA=CLA;btP1=P1;btP2=P2;btLC=LC;pbtData=pData;btLE=LE;
50+ bLC=true;bLE=true;
51+ exit_func
52+ }
53+ - APDU::APDU(BYTE CLA,BYTE INS,BYTE P1,BYTE P2,BYTE LC,BYTE *pData) {
54+ + APDU::APDU(uint8_t CLA,uint8_t INS,uint8_t P1,uint8_t P2,uint8_t LC,uint8_t *pData) {
55+ if (LC>251) throw;
56+ btINS=INS;btCLA=CLA;btP1=P1;btP2=P2;btLC=LC;pbtData=pData;btLE=0;
57+ bLC=true;bLE=false;
58+ }
59+ - APDU::APDU(BYTE CLA,BYTE INS,BYTE P1,BYTE P2,BYTE LE) {
60+ + APDU::APDU(uint8_t CLA,uint8_t INS,uint8_t P1,uint8_t P2,uint8_t LE) {
61+ btINS=INS;btCLA=CLA;btP1=P1;btP2=P2;btLE=LE;btLC=0;
62+ bLC=false;bLE=true;
63+ }
64+ - APDU::APDU(BYTE CLA,BYTE INS,BYTE P1,BYTE P2) {
65+ + APDU::APDU(uint8_t CLA,uint8_t INS,uint8_t P1,uint8_t P2) {
66+ btINS=INS;btCLA=CLA;btP1=P1;btP2=P2;btLE=0;btLC=0;
67+ bLC=false;bLE=false;
68+ }
6969diff --git a/cie-pkcs11/Util/log.cpp b/cie-pkcs11/Util/log.cpp
7070index 829ad42..5e70b3c 100644
7171--- a/cie-pkcs11/Util/log.cpp
7272+++ b/cie-pkcs11/Util/log.cpp
7373@@ -51,9 +51,7 @@ void initLog(const char *moduleName, const char *iniFile,const char *version)
74-
75- logGlobalVersion=version;
76-
77- - OutputDebugString("File INI:");
78- - OutputDebugString(iniFile);
79- - OutputDebugString("\n");
80- + OutputDebugString("File INI: %s\n", iniFile);
81-
82- UUCProperties settings;
83- //settings.load(iniFile);
74+
75+ logGlobalVersion=version;
76+
77+ - OutputDebugString("File INI:");
78+ - OutputDebugString(iniFile);
79+ - OutputDebugString("\n");
80+ + OutputDebugString("File INI: %s\n", iniFile);
81+
82+ UUCProperties settings;
83+ //settings.load(iniFile);
8484diff --git a/cie_sign_sdk/src/Crypto/CryptoUtil.h b/cie_sign_sdk/src/Crypto/CryptoUtil.h
8585index 4c9a795..380f44b 100644
8686--- a/cie_sign_sdk/src/Crypto/CryptoUtil.h
@@ -126,14 +126,14 @@ index bb4ae56..f984fd0 100644
126126--- a/cie_sign_sdk/src/UUCLogger.cpp
127127+++ b/cie_sign_sdk/src/UUCLogger.cpp
128128@@ -102,7 +102,7 @@ void UUCLogger::log(const unsigned int nType, const char *szMsg, const unsigned
129-
130- char szLogMsg[5000];
131- sprintf(szLogMsg, "[%s], %d, %X, %s, %s\n", szTime, nType, nID, szModuleName, szMsg);
132- - printf(szLogMsg);
133- + printf("%s\n", szLogMsg);
134- if(pfnCrashliticsLog != NULL)
135- pfnCrashliticsLog(szLogMsg);
136-
129+
130+ char szLogMsg[5000];
131+ sprintf(szLogMsg, "[%s], %d, %X, %s, %s\n", szTime, nType, nID, szModuleName, szMsg);
132+ - printf(szLogMsg);
133+ + printf("%s\n", szLogMsg);
134+ if(pfnCrashliticsLog != NULL)
135+ pfnCrashliticsLog(szLogMsg);
136+
137137- -
1381382.43.5
139139
0 commit comments