- changed vpcd driver to use ifdhandler api v 3.0, since
support for v 1.0 has been dropped as of pcsc-lite 1.6 - fixed initialization error of vpcd due to uninitialized value - changed virtual smartcard to use todays python syntax git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@163 96b47cad-a561-4643-ad3b-153ac7d7599c
This commit is contained in:
@@ -90,7 +90,7 @@ int opensock(unsigned short port)
|
||||
}
|
||||
|
||||
int waitforclient(int server, long int secs, long int usecs) {
|
||||
int sock;
|
||||
int sock = 0;
|
||||
|
||||
fd_set rfds;
|
||||
FD_ZERO(&rfds);
|
||||
@@ -189,7 +189,8 @@ int vicc_transmit(int apdu_len, const char *apdu, char **rapdu) {
|
||||
}
|
||||
|
||||
int vicc_present(void) {
|
||||
if (client_sock > 0) return 1;
|
||||
if (client_sock > 0)
|
||||
return 1;
|
||||
else {
|
||||
/* Wait up to one microsecond. */
|
||||
client_sock = waitforclient(server_sock, 0, 1);
|
||||
|
||||
Reference in New Issue
Block a user