Commit Graph

458 Commits

Author SHA1 Message Date
Frank Morgner
7215a6ed3f announce non thread safety 2015-05-18 07:55:18 +02:00
Frank Morgner
570bcf996a use pcsc-lite's debuglog.h or syslog
...or no log at all for debugging
2015-05-18 07:55:18 +02:00
Frank Morgner
a6e6beb2a9 better error handling
set output length to 0 on error
2015-05-18 07:55:18 +02:00
Frank Morgner
36f64cf59a added scritps to build package for OS X 2015-05-18 07:55:18 +02:00
Frank Morgner
c7f757b2fb Added compatibility with Info.plist bundle
primarily for usage on OS X
2015-05-18 07:55:18 +02:00
Frank Morgner
1581c61e4b use a static pcsclite.h compatible with pcsc-lite 1.8.9 2015-05-18 07:55:17 +02:00
Frank Morgner
118bc2fb51 fixed compiling without LOG 2015-05-12 20:00:51 +02:00
Frank Morgner
7763802d96 fixed check for strlcpy and strlcat 2015-05-12 19:55:42 +02:00
Frank Morgner
c7261f5640 fixed documentation of BixVReader.ini 2015-03-24 08:32:41 +01:00
Frank Morgner
6dfab7fbf1 pcsc-relay: fixed handling ATR for vpcd emulator 2015-03-18 07:54:44 +01:00
Frank Morgner
aa90d22813 allow ommiting data in vicc_transmit/vicc_connect
allows using these operations for both ends, vicc *and* vpcd
2015-03-14 15:03:16 +01:00
Frank Morgner
1af188e2b2 fixed library name in documentation 2015-03-14 01:52:04 +01:00
Frank Morgner
a515be58f9 export vicc_connect 2015-03-14 00:53:55 +01:00
Frank Morgner
78d181017b added note about possible Android usage 2015-02-27 23:34:50 +01:00
Frank Morgner
a76a859a92 fixed loading file image
partially fixes #41
2015-02-08 20:41:07 +01:00
Frank Morgner
832e4110f9 close socket on error 2015-02-02 19:26:52 +01:00
Frank Morgner
676bc3707a save reference date/community id in the local object, not the class
- mapps a truncated brith date YYYYMM to YYYYMM31
- uses python magic to shorten the code
- closes #38
2015-01-30 22:58:55 +01:00
psytester
702e248a48 Verify implemented for Age, DocumentValidity and PlaceVerification checks
In case of AgeVerification , DocumentValidity and PlaceVerification checks, the return code is not longer hard coded.
Based on given reference values a check is does against given DG3, DG8 and DG18 values

Still ToDo is incomplete DG8 BirthDate in Format YYYY-XX where the day is missing
2015-01-30 22:58:55 +01:00
psytester
c4790e02b3 provide CommunityID as hex string
CommunityID is taken now from default value or dataset file in readable digit-string Format.
Benefits:
- internal "NotOnChip" function is now working for DG18
- The value is readable ;-)
2015-01-30 22:58:31 +01:00
Frank Morgner
46024daf22 close socket on error 2015-01-28 23:07:30 +01:00
Frank Morgner
feebfe7a74 fixed potentially dereferencing null pointer 2015-01-25 04:00:31 +01:00
Frank Morgner
f03760e27e suppress warning of unclosed fd 2015-01-25 04:00:31 +01:00
Frank Morgner
94dbdd5405 fixed freeing context on exit 2015-01-25 04:00:31 +01:00
Frank Morgner
ff0aaca65b fixed closing socket on error 2015-01-25 04:00:31 +01:00
Dominik
4f6c4749f9 Merge remote-tracking branch 'upstream/master' 2015-01-18 19:29:34 +01:00
Dominik
0b52e4a184 Use a relative path instead of a symlink so that the unit test works on windows 2015-01-18 19:03:13 +01:00
Frank Morgner
d89385c3e1 added support for QES with German ID card
libnpa: requires an ID card that is initialized for QES. Today, this
means you need to register at sign-me.

virtualsmartcard: We don't actually create a real signature, because
PyCrypto can't handle ECDSA, let alone brainpoolP256r1. We only return a
64 byte buffer.
2015-01-18 02:24:18 +01:00
Frank Morgner
ff71e301db fixed handling of missing le in sm apdu 2015-01-18 01:04:16 +01:00
Dominik
482df53e4c Extend CardGenerator unittests
There are now tests for most currently implemented card types. Tests for
new card types can easily be added by inheriting from the basic test
class. The ePass card type is currently missing from the tests because
the CardGenerator for this class currently only works with user
interaction.
2015-01-10 12:19:45 +01:00
Frank Morgner
a35f0295c6 Merge pull request #35 from d0/master
Minor improvements to CardGenerator and the corresponding unit test
2015-01-08 12:12:02 +01:00
Dominik
d90914edb0 Fix incorrect indention of close statement
Commit 8ea1c74e2f moved the f.close()
statement to the wrong indention level, thereby closing the file
prematurely when reading Datagroups from a file. Since files are closed
automatically due to the with statement, we just remove the explicit
call to close().
2014-12-23 12:10:07 +01:00
Dominik
8ea1c74e2f Fix indention 2014-12-23 11:36:29 +01:00
Dominik
5cb1c6ad58 Restore readDatagroups function accidently deleted in 1e7492a806 2014-12-23 11:16:58 +01:00
Dominik
991ba148d9 Minor improvements to CardGenerator and the corresponding unit test
Make sure that the file gets closed when writing a card to/reading a
card from disk. Also add a unit test for the error condition when trying
to import a card from a nonexistent file.
2014-12-22 14:58:11 +01:00
Frank Morgner
3822b00c8a Merge pull request #34 from d0/master
Add CardGenerator unit test
2014-12-22 11:49:46 +01:00
Dominik
1e7492a806 Remove superfluous whitespaces 2014-12-21 16:06:32 +01:00
Dominik
bca1fe3656 Add CardGenerator unit test
Added a first unit test for the CardGenerator class. It currently only contains
one test case for generating a virtual nPA.

In order to use this test some changes to the TravisCI configuration are
required. Especially the OpenPACE python bindings need to be build before
vsmartcard is being tested since the vsmartcard nPA functions use these
bindings.
2014-12-21 15:30:08 +01:00
Frank Morgner
9d7965d73b fixed parsing of MSE:SET AT for nPA in AusweisApp2 2014-12-02 09:00:47 +01:00
Frank Morgner
2231258c62 version bump 2014-11-20 22:18:28 +01:00
Frank Morgner
b27126e450 updated documentation 2014-11-20 21:25:31 +01:00
Frank Morgner
e3d703161c released 0.7 2014-11-14 08:09:54 +01:00
Frank Morgner
8d6343dbdf removed reference to relay-note.txt 2014-11-14 08:08:39 +01:00
Frank Morgner
b5740e9b46 use either readline or pyreadline 2014-11-12 22:41:19 +01:00
Frank Morgner
8c7718401e perform git2cl on local project only 2014-11-11 09:35:29 +01:00
Frank Morgner
dc2e53634e clearifications on vpcd's docs 2014-11-03 18:02:11 +01:00
psytester
75426aee9c Allow "NotOnChip" for missing DGs of nPA
- changes DG13 into BirthName, DG19 into eAT ResidencePermit1 and DG20
  into eAT ResidencePermit2

- better reading of datasetfile (empty lines are allowed, new line
  character is trimmed from value

- Closes #30 #33 #31
2014-10-27 21:06:15 +01:00
psytester
22f1d17c39 ATR problem not for Open eCard, but another one 2014-10-25 21:43:07 +02:00
psytester
2c135644ce Some ATR values for nPA OS
different ATR (Answer To Reset) values depending on used Chip version
It's just a playground, because in past eID client 'Open eCard App' did not recognize the card correctly with newest ATR values.
2014-10-23 20:13:27 +02:00
Frank Morgner
e6e6518650 clouds are for internet 2014-10-03 00:47:29 +02:00
Frank Morgner
4958cde4d8 fixed missing initialisation 2014-10-02 11:13:13 +02:00