Commit Graph

14 Commits

Author SHA1 Message Date
Santiago Gimeno
bf15e2eaf1 src: use predefined pcsclite types 2014-09-11 06:48:35 -07:00
Eric Chaves
bd2bf70739 added plataform conditions to binding.gyp\nfixed winsdcard.h references on apple platform 2014-08-25 21:48:27 -03:00
Santiago Gimeno
3c8b2c9f4b src: add disposition parameter to disconnect 2014-08-06 12:06:17 +02:00
Santiago Gimeno
26faed6dec src: refactor to use nan
- Now it supports latest 0.8.x, 0.10.x and 0.11.x
2014-08-05 10:10:00 +02:00
Santiago Gimeno
c6faeb3db3 src: remove unused variable 2014-07-29 12:18:38 +02:00
Santiago Gimeno
279bc112ce src: improve SCardConnect interface
- We can optionally pass the share_mode and preferred_protocol options. They are
  optional to keep backwards compatibility.
- Update README
- Define constants in C++ land.
2014-07-29 12:18:20 +02:00
Santiago Gimeno
cd01cd4788 src: remove fprintf's 2014-07-28 13:36:02 +02:00
Santiago Gimeno
c3d947860c Implement SCardControl 2014-07-28 11:49:35 +02:00
Santiago Gimeno
3cb970a04b Use the protocol parameter in CardReader.transmit
- We were simply hard-coding the T=0 protocol.
2013-10-16 17:03:18 +02:00
Santiago Gimeno
040f91c7b9 Change SCARD_READERSTATE initialization
- To remove some compiler warnings
2013-10-15 17:31:01 +02:00
Santiago Gimeno
194351d13d Add support for node v0.10.x
- It fixes issue #4.
2013-10-15 17:30:20 +02:00
Santiago Gimeno
1844bf1f3a Initialize SCARD_READERSTATE
- Not doing so was leading to random memory corruption errors.
2013-08-08 13:45:05 +02:00
Santiago Gimeno
3f2a1b5e4e CardReader status event should return the ATR
- Of the inserted card.
- Refactoring of the code that creates a Buffer instance into a
  separate function.
- Update the example and README
- It fixes bug #2
2013-07-05 17:25:18 +02:00
Santiago Gimeno
b40f9a2f88 Initial Implementation 2013-06-20 16:37:28 +02:00