oepen
227b684db8
Added some documentation
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@482 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-08-08 11:17:05 +00:00
frankmorgner
be145f6d06
reusing socket on reconnect
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@480 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-08-08 10:52:02 +00:00
oepen
ce87ed1e8c
Added a SAM reference to the Secure_Messaging class in order to resolve an error.
...
The classes in SmartcardSAM are way too entangled and definitively need to be
refactored.
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@479 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-08-05 14:43:06 +00:00
frankmorgner
1144b8de3d
checking attribute existance before referencing it
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@478 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-08-02 13:55:29 +00:00
frankmorgner
9022092c18
fixed bogus import
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@477 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-08-02 09:16:51 +00:00
oepen
2c78e4ff64
Bugfixes: Fixed import error and incorrect method call
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@475 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-08-01 14:32:04 +00:00
oepen
e33544452f
Bugfixes: Wrong number of arguments for function call and missing import
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@474 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-08-01 12:59:25 +00:00
oepen
25cf21afb2
Replaced print calls by actual logging
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@473 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-08-01 12:39:57 +00:00
oepen
168f4fd434
Bugfix: Missing self. before reference to content dictionary
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@472 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-08-01 10:52:37 +00:00
oepen
ae54cf5e18
Better exception handling
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@471 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-30 13:13:46 +00:00
oepen
c908fa9436
Code style improvements
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@470 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-30 12:23:23 +00:00
oepen
24c858eba6
Code style improvements
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@469 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-29 22:07:03 +00:00
oepen
03a4f8151e
Code style improvements
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@468 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-29 20:44:15 +00:00
oepen
28972ee5be
Code style improvements
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@467 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-29 20:40:38 +00:00
oepen
be448f9001
Merged CardContainer class with SAM.
...
Since part of the CardContainer functionallity was removed and the seperation
between both classes seemed kind of random, CardContainer was ditched in favor
of SAM.
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@466 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-29 20:15:45 +00:00
oepen
60d8d5501b
Code style improvements
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@465 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-29 20:06:15 +00:00
oepen
dfe2ecba2a
Removed remaining call to CardContainer.getKey
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@464 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-29 19:44:50 +00:00
oepen
46619ae71d
Removed in-memory encryption of data. We didn't use it and it was probably
...
buggy anyway, so this is a good opportunity to get rid of some awkard code.
In memory encryption might be properly implemented lateron using the SAM.FSencrypt
and SAM.FSdecrypt functions, but I doubt it's worth the trouble.
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@463 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-29 19:35:46 +00:00
oepen
9c7343ffd3
Code style improvements
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@462 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-29 18:49:03 +00:00
oepen
7ada4a0ca5
Bugfixing and code style improvements
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@461 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-29 18:25:30 +00:00
oepen
65a8acaae3
-Bugfix: Added missing import in PassportSAM
...
-Bugfix: Fixed constant names in SEutils
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@460 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-29 18:16:55 +00:00
oepen
97722f937d
Removing unused functions
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@459 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-29 18:03:35 +00:00
oepen
e23da2ba76
Removing unused functions
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@458 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-29 18:00:30 +00:00
oepen
87860758c8
Removing unused functions
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@457 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-29 17:52:20 +00:00
oepen
b8ed669d9f
Added convenience functions
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@456 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-29 17:49:40 +00:00
oepen
61e93395ba
Code style improvements
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@455 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-29 17:42:44 +00:00
oepen
56b0a57a2b
Code style improvements
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@454 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-29 17:29:02 +00:00
oepen
039da1c64a
Code style improvements and bugfixing in mutual_authenticate
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@453 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-29 16:32:58 +00:00
oepen
14c6690eb7
Code style improvements
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@452 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-29 16:20:57 +00:00
oepen
3acb3beb65
Code style improvements
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@451 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-29 16:13:25 +00:00
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
a7dbff3c62
silent build rules
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@427 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-23 22:24:45 +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
frankmorgner
29a713904a
released 0.4, which was mistakenly tagged 0.3
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@416 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-02-09 08:54:43 +00:00
frankmorgner
6cb6e6a633
released 0.3
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@412 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-02-08 21:31:45 +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