Commit Graph
57 Commits
Author SHA1 Message Date
Santiago Gimeno f1a012cdd2 doc: update README.md with supported OS's 2015-05-27 16:09:29 +02:00
Santiago Gimeno 1a3c7dec1c src: multiple Windows fixes
- Cross platform implementations of sleep and snprintf.
2015-05-27 16:09:29 +02:00
Santiago Gimeno 0c5e07e0e5 src: migrate pthreads to uv_threads
- So it can be compatible in every platform supported by libuv.
- Use attached threads instead of detached.
- Remove all CardReader 'status' listeners before emitting the
  'end' event.
2015-05-27 16:09:29 +02:00
Santiago Gimeno da61bae08a src: add SCARD_EJECT_CARD definition
- And remove duplicated SCARD_STATE_CHANGED definition.
2015-05-27 16:08:52 +02:00
Santiago Gimeno 980ec45bb5 Version 0.3.6 2015-01-19 10:07:35 +01:00
Santiago Gimeno 86083a3ad0 src: LONG should be converted to v8::Number 2015-01-16 16:21:38 +01:00
Santiago Gimeno 47f443bbf9 Version 0.3.5 2014-11-06 10:59:14 +01:00
Santiago Gimeno b2513ff119 src: add unistd.h to fix sleep compilation error
- Fix a couple of warnings.
2014-11-06 10:58:24 +01:00
Santiago Gimeno 67714c42c9 Version 0.3.4 2014-10-07 13:12:15 +02:00
Santiago Gimeno ab882a6975 src: expose CardReader SCARDHANDLE
- In case other C++ addons need access to it.
2014-10-07 13:10:25 +02:00
Santiago Gimeno d7dfb805a8 doc: document PCSCLite::close, CardReader::close
- Update example accordingly.
2014-09-26 13:14:51 +02:00
Santiago Gimeno c5602733a4 src: fix PCSCLite.close() for OS X 2014-09-26 13:14:51 +02:00
Santiago Gimeno 44b0c3e479 example: connect with SHARED share_mode
- This way the example works both in Linux and OS X. See:
  https://github.com/santigimeno/node-pcsclite/issues/14#issuecomment-56665208
2014-09-24 16:15:11 +02:00
Santiago Gimeno 921da53559 Version 0.3.3 2014-09-23 18:36:38 +02:00
Santiago Gimeno 5b10f8519c src: fix for OSs not supporting PnP Notification
- Instead of waiting for the notification, it will poll every second for a new
  card reader.
- Thanks to Ludovic Rousseau for the help. See:
  https://github.com/santigimeno/node-pcsclite/issues/14
2014-09-23 18:35:58 +02:00
Santiago Gimeno f85250beb0 src: add error_msg to create pretty pcsc errors 2014-09-23 18:31:58 +02:00
Santiago Gimeno ec0b79562c src: establish context on PCSCLite constructor
- Remove SCardEstablishContext from get_card_readers.
- Initialize m_status_thread to NULL so calling PCSCLite destructor does not
  crash in case the thread has not been launched. For example when
  SCardEstablish context fails
- Thanks to Ludovic Rousseau for pointing that out @
  https://github.com/santigimeno/node-pcsclite/pull/15#issuecomment-56222251.
2014-09-23 18:31:15 +02:00
Santiago Gimeno 2909f5e127 src: return after throwing an exception 2014-09-23 11:32:36 +02:00
Santiago Gimeno dbc0431295 example: fix connect callback log 2014-09-22 12:50:02 +02:00
Santiago Gimeno 246cbcc7ee Version 0.3.2 2014-09-19 11:22:18 +02:00
Santiago Gimeno d00d7adb12 doc: add node installation instructions 2014-09-19 11:21:34 +02:00
Santiago Gimeno bec0c491df tests: adapt test to newer functions signatures
- Specifically _connect and _disconnect.
2014-09-19 11:03:28 +02:00
Santiago Gimeno b9afcfe74b src: fix typo 2014-09-19 11:03:18 +02:00
Santiago Gimeno 00404f4402 Version 0.3.1 2014-09-12 14:13:08 +02:00
Santiago Gimeno 2693556591 src: fix linux error and a warning 2014-09-11 16:49:22 +02:00
Santiago GimenoandSantiago Gimeno bf15e2eaf1 src: use predefined pcsclite types 2014-09-11 06:48:35 -07:00
Santiago Gimeno f6978a685d doc: fix copy/paste typo 2014-08-06 12:47:51 +02:00
Santiago Gimeno 9fe4b23d9c Version 0.3.0 2014-08-06 12:07:11 +02:00
Santiago Gimeno 3c8b2c9f4b src: add disposition parameter to disconnect 2014-08-06 12:06:17 +02:00
Santiago Gimeno 8e8db638d7 Version 0.2.1 2014-08-05 10:11:53 +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 6629703927 doc: improve README style 2014-07-29 18:47:58 +02:00
Santiago Gimeno 961aaf8904 Version 0.2.0 2014-07-29 12:18:38 +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 c5d09f8b19 rel: update .gitignore and .npmignore 2014-07-29 12:15:13 +02:00
Santiago Gimeno 78796449c0 Version 0.1.0 2014-07-28 13:36:36 +02:00
Santiago Gimeno 7d02b538a9 test: remove assert require 2014-07-28 13:36:02 +02:00
Santiago Gimeno cd01cd4788 src: remove fprintf's 2014-07-28 13:36:02 +02:00
Santiago Gimeno ef475d882e src: fix readers detection logic
- Also, upgrade buffertools that allows to use it only when needed.
2014-07-28 13:35:53 +02:00
Santiago Gimeno c3b83ed118 Fix typo 2014-07-28 13:14:31 +02:00
Santiago Gimeno bb87f0b09c doc: Update README
- Improve format.
- Document API.
2014-07-28 13:10:47 +02:00
Santiago Gimeno c3d947860c Implement SCardControl 2014-07-28 11:49:35 +02:00
Santiago Gimeno 469d83f103 Version 0.0.4 2013-10-16 17:03:32 +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 d7fee6aca3 Add sublime files to .npmignore 2013-10-11 13:43:27 +02:00
Santiago Gimeno e7092f9319 Version 0.0.3 2013-08-08 13:46:15 +02:00
Santiago Gimeno ddd1f142ef Update tests 2013-08-08 13:46:02 +02:00
Santiago Gimeno 2bb9804a1f Refactor pcscslite.js
- Improve and fix how we parse and handle cardreader strings.
2013-08-08 13:45:31 +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 84cb97ca46 Bump to version 0.0.2 2013-07-11 18:31:37 +02:00
Santiago Gimeno 1f59246876 Improve example
- Call cardreader.connect on card insertion, cardreader.disconnect
  on card removal.
- It fixes bug #3.
2013-07-06 22:17:56 +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 6c63f5df31 Update README 2013-06-25 18:58:08 +02:00
Santiago Gimeno b40f9a2f88 Initial Implementation 2013-06-20 16:37:28 +02:00