Commit Graph

164 Commits

Author SHA1 Message Date
frankmorgner
d195ea474a - finished simulation of ta/ca
- fixed parsing case 4 extended apdu


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@278 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-09-24 14:07:47 +00:00
frankmorgner
32ce7352ef - fixed pace input parameters of cats-tool
- fixed apdu of simulation of ta/ca (cats-tool)
- fixed padding removal (sm)


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@277 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-09-24 12:22:47 +00:00
frankmorgner
c3ac301b86 - updated patch to pcsclite trunk
- changed default ccid command buffer size to support sending extended apdus in a single transmit (only for ccid-1.3.11 necessary)


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@276 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-09-24 07:42:34 +00:00
frankmorgner
a87fd00b88 - added le/lc to apdu debugging
- fixed byte order problem for PC_to_RDR_XfrBlock
- cats-tool: added simulation of part of TA/CA


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@275 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-09-23 19:36:20 +00:00
frankmorgner
f6d92dfece - fixed compiling errors
- adjusted secure messaging to support extended length apdus
- card has to support extended length, this is hardcoded at the moment, but should better be done in the appropriate card driver


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@274 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-09-23 12:56:34 +00:00
frankmorgner
6bfdafde8a added debugging of invalid apdus
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@273 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-09-23 11:12:08 +00:00
frankmorgner
efd0ad70af adatpted to the latest changes of OpenPACE. EstablishPACEChannel now fully functional
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@272 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-09-23 09:03:58 +00:00
frankmorgner
00148310ea - fixed receive length
- added simulation of buergerclient/ausweisapp


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@271 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-09-21 08:17:04 +00:00
frankmorgner
acae5db31e - removed unnecessary checks of NULL pointer before using free()
- fixed memory leak for buergerclient workaround


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@270 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-09-20 20:01:17 +00:00
frankmorgner
c0762d0466 fixed case 2 extended apdu parsing
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@269 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-09-19 12:00:26 +00:00
frankmorgner
eee134d9c0 - extended length fully functional. fixed last problems with lengths and ccid descriptor.
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@268 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-09-18 12:42:52 +00:00
frankmorgner
593c0ce77a bugfix: case 2 extended length apdu are now recognized
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@267 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-09-16 10:08:07 +00:00
frankmorgner
74f45f03fe - Added capabilities to parse and send extended length APDUs. This does not
work proberly with libccid, so it is disabled at the moment
- unpower card only on PC_to_RDR_IccPowerOff


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@266 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-09-15 21:14:32 +00:00
frankmorgner
1a31d39d02 reset the card before disconnecting to unpower and reset the secure messaging status
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@265 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-09-15 09:49:10 +00:00
frankmorgner
8623c7fe6e - some unneded functions are no longer available in header files
- cleaned memory leaks in pace-tool and ccid-emulator


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@264 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-09-14 20:37:43 +00:00
frankmorgner
4a7fc6c457 - fixed wrong PCSC-PACE-data
- fixed command line parsing


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@263 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-09-14 16:07:49 +00:00
frankmorgner
ed358e839b added support for unambiguous PACE-channel selection (ID.icc and ID.pcd)
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@262 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-09-13 14:11:30 +00:00
frankmorgner
211dc10583 fixed memory corruption for too long _RDR_to_PC_DataBlock packages
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@261 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-09-13 09:24:19 +00:00
frankmorgner
2264fd2dab bugfix: wrong format strings
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@260 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-09-09 10:04:22 +00:00
frankmorgner
e5d3c68e68 - renamed ccid-test to cats-tool, since it is suitable for all readers of type cat-s and cat-b
- cats-tool takes PIN as input parameter


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@259 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-09-01 05:49:26 +00:00
frankmorgner
aefe8018f2 - bugfix: pace output data now parsed correctly
- added time measurement


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@258 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-08-31 10:54:50 +00:00
frankmorgner
6a78233be7 removed PCSC_TLV_STRUCTURE since its the attributes are not always packed
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@257 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-08-31 10:26:53 +00:00
frankmorgner
cfa79d93b0 - bugfix: now converting pace io control to host byte order
- now parsing pace output data
- use pcsclite-capabilities, if possible


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@256 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-08-31 09:09:04 +00:00
frankmorgner
25a0981fbf including reader.h, if possible
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@255 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-08-30 19:39:57 +00:00
frankmorgner
a6cd9c651c added compatibility with windows
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@254 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-08-30 13:18:43 +00:00
frankmorgner
d4b42dc293 added missing file
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@253 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-08-25 17:13:31 +00:00
frankmorgner
94d72232db added pace-tool can now break can, pin, puk with brute force
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@252 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-08-25 13:25:10 +00:00
frankmorgner
3227331f91 added workaround for current buergerclient to read efcardaccess
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@251 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-08-24 08:31:41 +00:00
frankmorgner
77e37a83b3 - made establishpacechannel output independant from any byte order conversion.
little endian handling is done by the ccid-part.
- pacelib exports PACE-functionality.


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@223 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-07-15 18:53:27 +00:00
frankmorgner
68984ac0a2 - usb.c: fixed signal handling
- ccid.c: revised construction of RDR_to_PC_*-packages to make the code more readable


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@217 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-07-12 22:54:10 +00:00
frankmorgner
5c70cd3163 - made establishpacechannel output independant from any byte order conversion.
little endian handling is done by the ccid-part.


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@215 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-07-12 21:27:35 +00:00
frankmorgner
deaf8a8096 bugfix: transform pace output buffer on usb from little endian to host byte order
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@211 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-07-12 12:18:04 +00:00
frankmorgner
367afc4406 - fixed parse errors
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@210 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-07-12 11:28:12 +00:00
frankmorgner
98269eca38 - pace debug output of libccid is shown by default in pcscd's log
- made establishpacechannel input independant from any byte order conversion.
  little endian handling is done by the ccid-part.


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@209 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-07-12 09:58:35 +00:00
frankmorgner
bb1f1d91e6 - added support for IDicc
- fixed parse error of pace output buffer


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@202 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-07-07 16:38:34 +00:00
frankmorgner
4a3c04a755 - added parsing of PACE data
- bugfix: PACE output data had to be wrapped again


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@201 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-07-07 10:31:50 +00:00
frankmorgner
37b997067d bugfix: PACE response data was not copied to application
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@195 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-07-05 15:07:47 +00:00
frankmorgner
23f47945ad printing received buffers
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@194 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-07-04 21:00:19 +00:00
frankmorgner
e2b9bdb316 bugfix: get the whole PACE response data
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@193 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-07-04 18:06:09 +00:00
frankmorgner
b84e3fbdba - added information how many bytes were actually transmitted via usb
- split general authenticate into multiple functions, one for every step of
  PACE.
- including recent and previous car in output buffer of EstablishPACEChannel
- ccid-emulator initiates EstablishPACEChannel always with a new sm_ctx


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@192 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-07-04 11:35:17 +00:00
frankmorgner
997fb84d9e added ef.cardaccess and statusbytes to response of establishpacechannel
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@191 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-07-02 21:03:34 +00:00
frankmorgner
c97f80c8e4 fixed wrong text of prompt for secret
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@190 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-07-02 20:26:29 +00:00
frankmorgner
9bd47f3673 really releasing 0.3
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@184 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-07-01 11:12:58 +00:00
frankmorgner
a69e19adfe fixed missing Makefile to include patche
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@182 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-07-01 10:59:55 +00:00
frankmorgner
424b3d63cc added patches to distribution file
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@181 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-07-01 10:56:25 +00:00
frankmorgner
d380f8b9a8 releasing 0.3
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@180 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-07-01 10:11:08 +00:00
frankmorgner
a8fa882e41 - fixed unblock pin, it is now successfully tested
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@179 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-07-01 10:09:26 +00:00
frankmorgner
a2012126cd - Replaced references to sc_get_pin* with its OpenSSL counter parts (untested)
- UI functionality and maybe more is no longer shipped in opensc>=0.12. This
  and the fact that linking against libopensc in general is discouraged might
be a reason to abandon opensc in future releases.


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@170 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-06-25 21:31:36 +00:00
oepen
7411c63b47 -Fixed patches so bitbake can apply them
-Added patches to bitbake recipes


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@169 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-06-23 15:04:27 +00:00
frankmorgner
3987f7acad - better (or at least some) signal handling
- always checking the existance of a card, when requested


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@168 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-06-23 12:20:54 +00:00