- 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:
frankmorgner
2010-06-22 14:06:07 +00:00
parent 34cbb09b80
commit 0b03fced4a
3 changed files with 60 additions and 37 deletions

View File

@@ -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);