Frank Morgner
e8fcbdeea5
updated ccid for new version of libnpa
2013-02-18 22:58:06 +01: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
5ad4fdfcdf
get ef.cardaccess on demand. newer versions of ausweisapp dont screw this up anymore.
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@718 96b47cad-a561-4643-ad3b-153ac7d7599c
2012-02-17 18:43:51 +00:00
frankmorgner
2ed6a468fc
using patched OpenSC enabled with PACE to use the reader's capabilities
...
sourcecode can be fetched from here https://github.com/frankmorgner/OpenSC
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@696 96b47cad-a561-4643-ad3b-153ac7d7599c
2012-01-25 15:04:52 +00:00
frankmorgner
a75ae8a2bd
handling certificate description and chat in libnpa instead of ccid-emulator
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@534 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-09-20 21:22:32 +00:00
frankmorgner
85158c9ed9
checking certificate description on pso:verify certificate
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@533 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-09-20 20:12:50 +00:00
frankmorgner
93d727841e
dumping chat
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@532 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-09-20 19:41:31 +00:00
frankmorgner
d8e2eb9afc
dumping certificate description
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@531 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-09-20 19:36:32 +00:00
frankmorgner
dc3164422a
added ugly hack to support changing the eID-PIN with AusweisApp
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@529 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-09-14 14:24:30 +00:00
frankmorgner
b66134e000
fixed parsing of modification input
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@528 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-09-14 14:07:28 +00:00
frankmorgner
84d609ea51
- new pin was not included in apdu for pin modification (fixed)
...
- added support for modification/verification apdus from the host that don't contain any data. the reader automatically allocates the correct number of bytes for the pin(s) and modifies apdu's case and lc.
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@521 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-09-02 22:14:38 +00:00
frankmorgner
0f979c9563
fixed problems parsing pin modification data structure
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@520 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-09-02 19:29:10 +00:00
frankmorgner
e1e359b440
fixed bugs for pin modification
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@519 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-09-02 15:38:01 +00:00
frankmorgner
59b8a9b0da
fixed bugs due to new version of opensc
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@517 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-09-02 13:48:17 +00:00
frankmorgner
495022b38a
- added openssl debug code to ccid emulator
...
- fixed some bugs due to changes in recent opensc version
- added support for changing pin via standard leser
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@511 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-08-30 15:55:40 +00:00
frankmorgner
d3b7dd4dac
switched to opensc 0.12.1, where build_apdu has been accepted as sc_bytes2apdu
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@433 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-25 21:14:28 +00:00
frankmorgner
dea6b519ac
added support for GetReaderInfo of BSI TR-03119
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@432 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-25 20:04:16 +00:00
frankmorgner
319e571cee
- bugfix to be conform to OpenPACE API
...
- added consistency checks for lengths of APDUs
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@431 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-25 18:54:09 +00:00
frankmorgner
a1796eb535
adapted to the latest changes of libnpa
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@413 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-02-08 21:35:37 +00:00
frankmorgner
8cd77084cc
renamed libpace to libnpa
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@403 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-02-02 18:49:14 +00:00
frankmorgner
da44cd7f86
- fixed problem when powering the card
...
- removed unused code that had to do with slot-complexity
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@387 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-01-15 00:35:52 +00:00
frankmorgner
19f8608712
supporting only one slot due to new opensc limitations
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@386 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-01-14 22:31:26 +00:00
frankmorgner
79dc468cc5
switched to opensc.0.12.0. note that this has some issues when linking against both libnpa and the opensc libraries at the same time. readme information would be usefull for this...
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@385 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-01-14 14:24:04 +00:00
frankmorgner
d286f16ef7
adapted to the latest changes of libpace
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@375 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-12-08 15:11:26 +00:00
frankmorgner
bad4d94312
removed/replaced remains of libpace
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@361 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-11-15 09:27:05 +00:00
frankmorgner
c253da05b2
pace card supports extended lengths. note that we really need a card driver which covers that
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@344 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-10-27 14:50:38 +00:00
frankmorgner
898fa7885a
unified usage of sizeof. found some potential memory corruptions with that.
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@341 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-10-26 18:41:13 +00:00
frankmorgner
a233d19691
- fixed memory corruption on card initialization
...
- fixed compilation warning
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@340 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-10-26 13:47:23 +00:00
frankmorgner
1b34e5e66b
added workaround for ausweisapp
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@339 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-10-22 08:31:57 +00:00
frankmorgner
c7a33e9066
fixed formating of ReadersPACECapabilities result. errors were due to changes of r284
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@338 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-10-21 18:54:16 +00:00
frankmorgner
171bfe8a1a
- enable extended length apdu for all cards that have an ef.cardaccess
...
- set the bit for esign by default (for testing only)
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@337 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-10-21 12:45:13 +00:00
frankmorgner
a552631872
reviewed files with flawfinder
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@316 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-10-11 11:56:18 +00:00
frankmorgner
5437b3d61a
added documentation
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@288 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-09-29 21:01:24 +00:00
frankmorgner
ba1e110d8d
forgot writeback to RxBuffer in ccid driver
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@285 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-09-28 09:10:20 +00:00
frankmorgner
ae83880a16
added support for dynamic pace result generation to be transmitted to the pc/sc client. note that other ccid patches are not up to date
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@284 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-09-27 20:48:43 +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
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
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
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
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
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
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