oepen
d89e77af59
Code style improvements
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@450 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-29 15:57:39 +00:00
oepen
0aae975fef
Bug hunting and beautifying with pylint
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@449 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-29 15:33:39 +00:00
oepen
dc040c7ab9
-Bugfix: Fixed incorrect indention
...
-Bugfix: Do not default to MD5 hashing
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@448 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-29 14:38:30 +00:00
oepen
48571a6f2b
Bugfix: adapted changed signature of the Security_Environment constructor
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@447 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-29 14:21:31 +00:00
oepen
d9f16f5a69
Even though there may be different Keys to protect CAPDUs and RAPDUs there is
...
only one Security Environment. Therefore, I merged the CAPDU_SE and RAPDU_SE
into current_SE. Works with the ePass Emulation, still need to test it with
the cryptoflex card.
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@446 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-29 14:15:10 +00:00
oepen
47461a40ca
SmartcardSAM: Fixed syntax errors
...
SEutils: Now replying with error RAPDU when we do not support a referenced algorithm
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@445 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-29 09:36:30 +00:00
oepen
6cd71ddd55
Various Bugfixes with regard to parsing a MSE:SetAT.
...
The whole SE and SAM system should really be rewritten.
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@444 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-29 09:08:46 +00:00
oepen
43df314a5e
-Moved MAX_LE defines to ConstantDefinitions
...
-Added a parameter to control whether or not an ISO card supports extended length APDUs
-Correctly indicating extended length support in the ATR
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@439 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-26 12:30:18 +00:00
oepen
3fe52398ed
Imported minor bugfix from upstream
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@437 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-26 11:16:59 +00:00
oepen
25635cb025
-Removed unused code from utils.py
...
-Added a unit test for case 2 extended length APDUs
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@436 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-26 11:10:06 +00:00
oepen
3447849133
-Bugfix: The Le of the Command APDU was used when sending out an error R_APDU
...
-Enhancement: Using correct effective Le for R_APDUs
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@435 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-26 09:46:49 +00:00
oepen
a98c1f84e7
-Bugfix: Erroneously set Lc and not Le for case 2 APDUs
...
-Added new property effective_Le
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@434 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-25 21:59:34 +00:00
oepen
394ff534ed
Fixed typo
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@430 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-25 14:52:23 +00:00
oepen
6e6dd7cfa7
Preliminary extended length APDU support
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@429 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-25 11:48:25 +00:00
oepen
d248e5ae40
Bugfix: wrong parameters were set in a call for formatResult
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@428 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-25 10:10:25 +00:00
frankmorgner
1676f73d06
clearification on requirements for compliance to IFDHandler API version 3
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@426 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-23 14:08:01 +00:00
oepen
7f935fd9a6
Reverting bad commit
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@401 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-02-01 13:53:31 +00:00
oepen
af3d8fe0bb
Shut up autotools
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@400 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-02-01 13:47:53 +00:00
frankmorgner
8ab0ea2eb3
fixed generation of ePass file system (fixes 3164830)
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@393 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-01-25 12:53:26 +00:00
frankmorgner
2cd4899a42
fixed path walking (fixes 3164775)
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@392 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-01-24 15:30:11 +00:00
frankmorgner
5bba2b6044
unified usage of sizeof.
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@342 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-10-26 20:21:04 +00:00
frankmorgner
1dd164d9e5
- renamed ifd.c to ifd-vpcd.c to have more readable logging in pcscd
...
- updated support information
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@336 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-10-15 20:15:31 +00:00
frankmorgner
dcb2507b2f
- switched from perl to sed for substitution of autoconf variables
...
- changed from generating reader.conf to vpcd in /etc/reader.conf.d
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@329 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-10-13 19:18:40 +00:00
frankmorgner
8bab6479fe
added missing file, deleted unused file
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@328 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-10-13 16:21:27 +00:00
frankmorgner
eb7ed3dcd3
merged with changes of r320
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@326 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-10-13 07:46:53 +00:00
frankmorgner
5ee49dae66
grouped virtual smartcard objects in virtualsmartcard package
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@325 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-10-13 07:40:57 +00:00
frankmorgner
5f54e4a780
added inconsistency check for the received apdu
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@324 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-10-12 12:33:57 +00:00
frankmorgner
7f37e22c9d
let vicc recognize shutdown of vpcd
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@323 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-10-12 12:24:21 +00:00
frankmorgner
37421c11a1
added workaround for bug 312754 of pcsc-lite
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@322 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-10-11 18:43:07 +00:00
frankmorgner
aaffb4ad15
RelayOS: removed card observer (thread). a removed card is now handled by exceptions.
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@321 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-10-11 17:30:35 +00:00
oepen
690caf4060
-pycrypto should now only be imported if an instance of the SAM class is created
...
-Removed deprecated unit tests
-fixed some bugs caused by incorrect naming
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@320 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-10-11 15:53:16 +00:00
frankmorgner
9517bcd8fa
added status message
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@319 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-10-11 12:35:44 +00:00
frankmorgner
425e054916
activated ATR polling as workaround for pyscard bug #3084449 . now when the real smartcard is removed, the relay process terminates
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@318 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-10-11 12:31:13 +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
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
aa539552b7
removed the last references of references to ifdhandler functions v1.0
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@167 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-06-23 07:10:34 +00:00
oepen
a1766913a3
-Fixed two unhandled exceptions
...
-Removed some trailing whitespaces
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@164 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-06-22 18:16:07 +00:00
frankmorgner
0b03fced4a
- changed vpcd driver to use ifdhandler api v 3.0, since
...
support for v 1.0 has been dropped as of pcsc-lite 1.6
- fixed initialization error of vpcd due to uninitialized value
- changed virtual smartcard to use todays python syntax
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@163 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-06-22 14:06:07 +00:00
frankmorgner
34cbb09b80
forcing empty parameter list with function(void) instead of unspecified parameter list with function()
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@162 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-06-22 09:45:34 +00:00
frankmorgner
a86e0f3922
added missing files for distribution packages. fixed installation when no serialdropdir is given.
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@142 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-06-09 15:36:36 +00:00