Commit Graph

63 Commits

Author SHA1 Message Date
Frank Morgner
c63cc40c34 fixed misuse of realloc
if called with size 0, realloc frees the buffer, which may eventually
lead to a double free corruption.
2019-01-17 15:04:35 +01:00
Nick Russler
de515d80d2 Add MSI installer for win32 virtualsmartcard.
Also ignore temporary VS artifacts and removes conflicting snprintf definition with standard definition
2016-11-12 00:16:36 +01:00
Frank Morgner
d9dfc2c697 Checks for ssize_t
Works around the different typedef of ssize_t in MinGW
2015-09-20 02:54:40 +02:00
Frank Morgner
a23913ff9c Uses %Ix instead of %x
Fixes compiler warning about implicit type conversion on 64 bit machine
2015-09-18 15:22:40 +02:00
Frank Morgner
16ee860a66 Fixes windows warning about casting on x64 2015-09-18 15:22:35 +02:00
Frank Morgner
f66c7834ba fixed windows cross compilation of vpcd 2015-08-21 22:56:13 +02:00
Frank Morgner
6dfab7fbf1 pcsc-relay: fixed handling ATR for vpcd emulator 2015-03-18 07:54:44 +01:00
Frank Morgner
aa90d22813 allow ommiting data in vicc_transmit/vicc_connect
allows using these operations for both ends, vicc *and* vpcd
2015-03-14 15:03:16 +01:00
Frank Morgner
a515be58f9 export vicc_connect 2015-03-14 00:53:55 +01:00
Frank Morgner
832e4110f9 close socket on error 2015-02-02 19:26:52 +01:00
Frank Morgner
46024daf22 close socket on error 2015-01-28 23:07:30 +01:00
Frank Morgner
94dbdd5405 fixed freeing context on exit 2015-01-25 04:00:31 +01:00
Frank Morgner
ff0aaca65b fixed closing socket on error 2015-01-25 04:00:31 +01:00
Frank Morgner
8abb64e519 use a separate directory for ifd-vpcd and pcsclite-vpcd 2014-03-31 23:46:15 +02:00
Frank Morgner
0aec0e4d31 vpcd: added real thread safety 2014-03-31 22:59:59 +02:00
Frank Morgner
151f3fe3da correctly initialize winsock 2014-03-18 23:27:01 +01:00
Frank Morgner
18463fc820 fixed definition for c++ 2013-12-04 22:17:42 +01:00
Frank Morgner
af02f4026a fixed compilation for windows 2013-08-16 09:25:11 +02:00
Frank Morgner
7e6b7cd4f6 avoid error: variable modified at file scope 2013-08-07 21:43:44 +02:00
Frank Morgner
4971ca1e17 don't install libvpcd when libpcsclite is requested
libpcsclite now statically links against libvpcd. This also is fully
compatible with OpenSC now, which uses dlopen/LoadLibrary for the PC/SC
provider.
2013-08-07 21:43:41 +02:00
Frank Morgner
cdf68d62b3 implemented my own version of libpcsclite
Allows customizing of the default adress to which vpcd or libpcsclite
connect to.

My libpcsclite is currently not thread safe. It should not be installed
together with PCSC-Lite since both packages have conflicting files. Use
./configure --enable-libpcsclite to use my version. Use ./configure
--enable-vpcdhost=ADRESS to define connection mode and adress of vpicc.
2013-07-19 23:49:01 +02:00
Frank Morgner
291178d139 implemented reversed connection establishment
vpcd can now be configured connect to a previously started vpicc.
2013-07-15 10:18:40 +02:00
Frank Morgner
6468c87e9f use ifd handler api v3.0 only.
port for connection may be specified in the device name
2013-07-11 00:07:34 +02:00
Frank Morgner
59b8c8cab1 throw an error if the APDU is too big 2013-06-27 00:08:33 +02:00
Frank Morgner
46d0132856 check for vicc presence and return immediately 2013-06-26 23:22:49 +02:00
Frank Morgner
013abb2f35 get cards atr on first try 2013-06-26 11:58:06 +02:00
Frank Morgner
a7ceffeb9f removed debug output 2013-06-25 21:48:49 +02:00
Frank Morgner
04efb3588e use libpcsclite.pc's new serialconfdir 2013-06-25 01:44:10 +02:00
Frank Morgner
fb4dbe59ba allow multiple cards to connect to vpcd
due to limitations of pcscd this is currently limited to 10 cards.
Note that there is a double free corruption in pcscd when unloading the
driver.
2013-06-25 01:05:20 +02:00
Frank Morgner
58dc2e1a01 fixed default location of reader.conf.d
use `./configure --confdir` for changing the default
2013-06-11 23:13:42 +02:00
Frank Morgner
2deb3470d2 fixed compiler warning 2013-05-23 18:18:37 +02:00
Frank Morgner
bae3f07045 made vpcd.c/vpcd.h windows-compatible 2013-05-23 18:18:37 +02:00
Frank Morgner
4db95549c2 vpcd: fixed prototype of sendall 2012-10-10 21:58:32 +02:00
Frank Morgner
01c9f00a33 VPCD: partial rewrite of socket communication
- memory for buffer of received data is now reused with realloc
- internal functions now use a similar interface like recv/send/...
- added documentation about memory handling of vicc_getatr/vicc_transmit
- fixed transmit when using send in multiple passes
2012-08-13 00:26:59 +02:00
Frank Morgner
3adf5b1e60 only propagate convenience functions of VPCD 2012-08-11 12:46:04 +02:00
frankmorgner
78fd66c8b5 fixed clang --analyze warnings
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@780 96b47cad-a561-4643-ad3b-153ac7d7599c
2012-04-24 12:10:44 +00:00
frankmorgner
6394a961c2 fixed clang compiler warnings
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@779 96b47cad-a561-4643-ad3b-153ac7d7599c
2012-04-24 11:49:31 +00:00
frankmorgner
12a7f8cfa0 fixed missing bracket
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@669 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-12-15 10:39:39 +00:00
frankmorgner
f877158623 autoconf macros for sed, ln and mkdir
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@651 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-12-08 20:34:19 +00:00
frankmorgner
e65bd89e47 added Cygwin as supported platform
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@639 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-12-07 09:15:09 +00:00
frankmorgner
be145f6d06 reusing socket on reconnect
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@480 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-08-08 10:52:02 +00:00
frankmorgner
1676f73d06 clearification on requirements for compliance to IFDHandler API version 3
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@426 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-23 14:08:01 +00:00
oepen
7f935fd9a6 Reverting bad commit
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@401 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-02-01 13:53:31 +00:00
oepen
af3d8fe0bb Shut up autotools
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@400 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-02-01 13:47:53 +00:00
frankmorgner
5bba2b6044 unified usage of sizeof.
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@342 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-10-26 20:21:04 +00:00
frankmorgner
1dd164d9e5 - renamed ifd.c to ifd-vpcd.c to have more readable logging in pcscd
- updated support information


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@336 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-10-15 20:15:31 +00:00
frankmorgner
dcb2507b2f - switched from perl to sed for substitution of autoconf variables
- changed from generating reader.conf to vpcd in /etc/reader.conf.d


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@329 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-10-13 19:18:40 +00:00
frankmorgner
37421c11a1 added workaround for bug 312754 of pcsc-lite
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@322 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-10-11 18:43:07 +00:00
frankmorgner
425e054916 activated ATR polling as workaround for pyscard bug #3084449. now when the real smartcard is removed, the relay process terminates
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@318 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-10-11 12:31:13 +00:00
frankmorgner
76cb2ee0c6 checked ifd.c and vpcd.c with flawfinder rats and pscan
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@315 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-10-11 10:59:07 +00:00