Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 572811 Details for
Bug 806038
Coolkey always creates a phantom EGate reader even when no reader exists.
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
patch 3/4 for propsed fix (previous two should be 1/4 and 2/4 respectively)
0003-SlotList-waitForSlotEvent-use-PnP-Notification.patch (text/plain), 2.35 KB, created by
Alon Levy
on 2012-03-26 17:05:29 UTC
(
hide
)
Description:
patch 3/4 for propsed fix (previous two should be 1/4 and 2/4 respectively)
Filename:
MIME Type:
Creator:
Alon Levy
Created:
2012-03-26 17:05:29 UTC
Size:
2.35 KB
patch
obsolete
>From 956b7043f815720719fe9183d5dc853c9fedc424 Mon Sep 17 00:00:00 2001 >From: Alon Levy <alevy@redhat.com> >Date: Thu, 22 Mar 2012 13:25:47 +0200 >Subject: [PATCH 3/4] SlotList::waitForSlotEvent: use \\?PnP?\Notification > >--- > src/coolkey/slot.cpp | 23 +++++++++++++++-------- > 1 file changed, 15 insertions(+), 8 deletions(-) > >diff --git a/src/coolkey/slot.cpp b/src/coolkey/slot.cpp >index a5f550b..d0fa41d 100644 >--- a/src/coolkey/slot.cpp >+++ b/src/coolkey/slot.cpp >@@ -1228,22 +1228,23 @@ SlotList::waitForSlotEvent(CK_FLAGS flag, CK_SLOT_ID_PTR slotp, CK_VOID_PTR res) > throw; > } > >- if (myNumReaders != numReaders) { >+ if (myNumReaders != numReaders + 1) { > if (myReaderStates) { > delete [] myReaderStates; > } >- myReaderStates = new SCARD_READERSTATE [numReaders]; >+ myReaderStates = new SCARD_READERSTATE [numReaders + 1]; >+ myNumReaders = numReaders + 1; > } >- memcpy(myReaderStates, readerStates, >- sizeof(SCARD_READERSTATE)*numReaders); >- myNumReaders = numReaders; >+ memcpy(myReaderStates, readerStates, >+ sizeof(SCARD_READERSTATE) * numReaders); >+ myReaderStates[numReaders].szReader = "\\\\?PnP?\\Notification"; >+ myReaderStates[numReaders].dwCurrentState = SCARD_STATE_UNAWARE; > readerListLock.releaseLock(); > status = CKYCardContext_WaitForStatusChange(context, > myReaderStates, myNumReaders, timeout); > if (status == CKYSUCCESS) { >- for (i=0; i < myNumReaders; i++) { >- SCARD_READERSTATE *rsp = &myReaderStates[i]; >- unsigned long eventState = CKYReader_GetEventState(rsp); >+ for (i=0; i < myNumReaders - 1; i++) { >+ unsigned long eventState = CKYReader_GetEventState(&myReaderStates[i]); > if (eventState & SCARD_STATE_CHANGED) { > readerListLock.getLock(); > CKYReader_SetKnownState(&readerStates[i], eventState & ~SCARD_STATE_CHANGED); >@@ -1253,6 +1254,12 @@ SlotList::waitForSlotEvent(CK_FLAGS flag, CK_SLOT_ID_PTR slotp, CK_VOID_PTR res) > break; > } > } >+ /* No real need to check for an additional card, we already update the >+ * list when we iterate. */ >+ if (CKYReader_GetEventState(&myReaderStates[myNumReaders - 1]) >+ & SCARD_STATE_CHANGED) { >+ log->log("Reader insertion/removal detected\n"); >+ } > } > > if (found || (flag == CKF_DONT_BLOCK) || shuttingDown) { >-- >1.7.9.3 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 806038
:
572809
|
572810
| 572811 |
572812