Skip to content

Commit 66a30fa

Browse files
committed
Fix Bugzilla Bug#533226 - ESC on Vista 64bit: throws 'Certificate Propagation has stopped working' when an enrolled token is inserted.
1 parent 416e2f4 commit 66a30fa

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

src/windows/csp/Makefile

+4-4
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ DBGLCFLAGS =
2727
DBGFLAGS =
2828
MTLIB = -MT
2929

30-
!IF "$(BUILD_OPT)" == "1"
31-
DBGLCFLAGS = -ZI -DEBUG -D_DEBUG
32-
DBGFLAGS = /DEBUG
30+
!IF "$(BUILD_OPT)" != "1"
31+
DBGLCFLAGS = -Z7
32+
DBGFLAGS = /DEBUG
3333
MTLIB = -MTd
3434
!ENDIF
3535

@@ -43,7 +43,7 @@ ARCH = X64
4343

4444
LCFLAGS=-Od -I$(CAPISDK)/sdkinc -DWIN32 -D_WINDOWS -D_USRDLL \
4545
-D_CONSOLE -DCSP_EXPORTS -D_WINDLL -DIDA_PROMPT_PINGUI -D_MBCS \
46-
-EHsc -RTC1 -W3 -nologo -c $(DBGCLFLAGS) -TP
46+
-EHsc -RTC1 -W3 -nologo -c $(DBGLCFLAGS) -TP
4747

4848
CSPRESFLAGS=/INCREMENTAL:NO /NOLOGO /DLL /DEF:"cspres.def" $(DBGFLAGS) \
4949
/SUBSYSTEM:WINDOWS /OPT:REF /OPT:ICF /IMPLIB:"cspres.lib" \

src/windows/csp/csp.cpp

+8-3
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,14 @@ CPAcquireContext(
165165

166166
context->CKAID_.HexToBin();
167167

168-
LOG("Container name: \"%s\"\n", &context->containerName_[0]);
169-
LOG("CKA_ID: %s \"%s\"\n", StringifyBin(context->CKAID_).c_str(),
170-
StringifyBin(context->CKAID_, false).c_str());
168+
if (context->containerName_.size()) {
169+
LOG("Container name: \"%s\"\n", &context->containerName_[0]);
170+
}
171+
172+
if (context->CKAID_.size()) {
173+
LOG("CKA_ID: %s \"%s\"\n", StringifyBin(context->CKAID_).c_str(),
174+
StringifyBin(context->CKAID_, false).c_str());
175+
}
171176

172177
if (!context->silent_ && !context->verifyContext_)
173178
{

src/windows/csp/cspres.rc

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ END
135135
IDD_PIN_DIALOG DIALOGEX 0, 0, 274, 103
136136
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION |
137137
WS_SYSMENU
138-
CAPTION "Please enter your PIN"
138+
CAPTION "COOLKEY CSP: Please enter your PIN"
139139
FONT 8, "MS Shell Dlg", 400, 0, 0x1
140140
BEGIN
141141
DEFPUSHBUTTON "OK",IDOK,159,82,50,14,WS_DISABLED

0 commit comments

Comments
 (0)