Commit Graph

316 Commits

Author SHA1 Message Date
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
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
frankmorgner
938d09730b fixed problems for workaround of pcscd bug 312749
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@314 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-10-10 16:20:09 +00:00
frankmorgner
04f2ee8020 added workaround for pcscd bug #312749
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@313 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-10-10 15:45:33 +00:00
frankmorgner
e8d4026d23 added length check on rapdu buffer.
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@312 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-10-10 14:38:20 +00:00
frankmorgner
305c94a666 modified error messages
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@311 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-10-09 20:42:16 +00:00
frankmorgner
5262f5a813 now reading the port to open from reader.conf
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@310 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-10-09 20:32:53 +00:00
frankmorgner
8efb2f81a2 - added more error handling to RelayOS
- vicc in relay mode terminates when card is removed
- created cleanup routines to use with atexit.register


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@309 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-10-09 13:33:32 +00:00
frankmorgner
ae713f5b24 - added workaround for "Error resetting card." in pcscd. it is propably a bug in pcscd
- added more debug information


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@308 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-10-08 20:14:22 +00:00
frankmorgner
9df0a14194 added better inheritance to smartcard os's
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@307 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-10-08 20:12:09 +00:00
frankmorgner
1cf7024455 - exception handling on power up and power down
- added workaround for pyscard bugs #3083586 and #3083254


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@306 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-10-08 08:44:35 +00:00
frankmorgner
212bbf0959 added debug information
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@305 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-10-08 08:11:00 +00:00
frankmorgner
e9c53a09c3 - fixed invalid memory read
- added more input checking


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@304 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-10-08 07:51:40 +00:00
frankmorgner
c2a0246ae4 implemented smart card class for relaying
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@303 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-10-07 21:04:03 +00:00
frankmorgner
ac90a9e422 added copyright and author
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@302 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-10-07 13:12:48 +00:00
frankmorgner
de2f9d7c82 rewrite and cleanup complete
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@301 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-10-07 13:00:20 +00:00
frankmorgner
480cf4d722 - cats-test and picc_to_pcsc are using the same pcsc abstraction. this reduces the code to maintain
- partial rewrite of picc_to_pcsc to reduce memory leaks and add fault tolerancy


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@300 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-10-07 10:41:45 +00:00
frankmorgner
320cca0731 prepare to merge with pcsc_to_picc
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@299 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-10-06 20:01:44 +00:00
frankmorgner
5651019177 svc fixed uninitialized value
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@298 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-10-06 13:48:31 +00:00
frankmorgner
8bd590ab42 added missing files
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@297 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-10-04 20:05:46 +00:00
frankmorgner
837d952bb9 using strtol instead of sscanf
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@296 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-10-04 13:54:58 +00:00
frankmorgner
35ce942354 - added command line parameter for USB iInterface, use it to fool AusweisApp
- fixed population of event notification status
- dont initialize serial number, when given in input


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@295 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-10-04 12:04:06 +00:00
frankmorgner
523ce83c7b added README as link to doxygen file
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@294 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-10-04 05:53:49 +00:00
frankmorgner
8e9557d97b only using doxygen description as readme
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@293 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-10-04 05:52:10 +00:00
frankmorgner
4dc715f33c changed to a more simplistic generation of documentation
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@292 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-10-02 20:35:34 +00:00
frankmorgner
84679e5b5a added documentation
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@291 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-10-01 20:46:40 +00:00
frankmorgner
f080a22d8a sending description about the running configuration via usb descriptor
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@290 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-09-30 20:45:16 +00:00
frankmorgner
fff32978ce added documentation
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@289 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-09-30 11:16:12 +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
972575f84a adapted to the latest changes of OpenPACE
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@287 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-09-29 12:57:16 +00:00
frankmorgner
e9aa0077fd postpone patch update for higher versions of ccid
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@286 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-09-28 09:11:37 +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
6f46d10136 corrected indent and title of CHAT and certificate description
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@283 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-09-27 10:58:33 +00:00
frankmorgner
3d5e8af4f3 added support for printing and transmitting chat
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@282 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-09-27 09:04:09 +00:00
frankmorgner
37c27c4afe print certificate description
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@281 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-09-27 08:35:19 +00:00
frankmorgner
e2f07e6a33 working on support for certificate description
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@280 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-09-27 05:18:32 +00:00
frankmorgner
e4bee2861e deactivate emulators sm context, when host sends sm protected apdus
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@279 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-09-25 05:20:20 +00:00
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