Commit Graph

495 Commits

Author SHA1 Message Date
oepen
ee7aff5293 -Bugfix: Selection from current DF
-Replaced print by logging


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@495 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-08-17 14:18:55 +00:00
oepen
9558f4ffb7 -Updated copyright date
-Added a little bit of documentation


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@494 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-08-17 11:15:22 +00:00
oepen
6e73b5961e Removed incorrect sanity check
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@493 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-08-17 11:06:05 +00:00
oepen
dcfc185389 Removed incorrect sanity check
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@492 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-08-17 11:02:08 +00:00
oepen
7a810ebece Fixed urandom() usage
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@491 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-08-17 10:43:34 +00:00
oepen
d98a889133 Fixed urandom() usage
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@490 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-08-17 10:41:19 +00:00
oepen
ffeb5ef066 Refactoring: Merged Secure_Messaging and Security_Environment classes
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@489 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-08-17 10:31:18 +00:00
frankmorgner
4af89d967f patch to newest version of libccid
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@488 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-08-09 11:20:29 +00:00
oepen
23dfd8c62b Fixed some typos
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@487 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-08-08 15:24:28 +00:00
oepen
90bffcf039 Fix storage and retrieval of Security Environments
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@486 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-08-08 15:17:06 +00:00
oepen
414903481c Removed duplicate method
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@485 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-08-08 12:43:57 +00:00
oepen
23e323ff42 Forgot to return SW[NORMAL] in case an MSE command actually succeeds :-)
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@484 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-08-08 12:27:58 +00:00
oepen
d8a1703c6d The __replace_tag function was completely broken. It is now somewhat fixed, but
should still be replaced by a more elegant solution.


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@483 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-08-08 12:20:31 +00:00
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
0fdb1004eb returning default strings on selection of wrong language
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@481 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-08-08 10:52:45 +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
frankmorgner
8176a7fdf0 fixed potential buffer overflow when parsing input
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@476 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-08-02 09:04:29 +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