Commit Graph

1265 Commits

Author SHA1 Message Date
Frank Morgner
401ce8bcfb fixed printf arg type 2015-01-28 23:05:57 +01:00
Frank Morgner
1ebd92f8b9 another fixup 2015-01-27 05:03:09 +01:00
Frank Morgner
8187dbbb15 an other fixup 2015-01-26 22:04:26 +01:00
Frank Morgner
e77fecd601 (hopefully) fixed travis-ci with coverity-scan 2015-01-26 22:00:23 +01:00
Frank Morgner
b7b82c0b0e fixed check for pin length 2015-01-25 04:10:36 +01:00
Frank Morgner
e1443e6357 fixed unused check 2015-01-25 04:08:00 +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
Frank Morgner
86e778ff2c fixed memory leak 2015-01-25 04:00:31 +01:00
Frank Morgner
da025bf0bf removed unused check 2015-01-25 04:00:31 +01:00
Frank Morgner
27ef5d59d5 fixed handling of bad arguments 2015-01-25 03:30:10 +01:00
Frank Morgner
444b14c8ca fixed bad pointer arithmetic 2015-01-25 03:27:33 +01:00
Frank Morgner
f92d750b39 fixed uninitialized value 2015-01-25 03:27:33 +01:00
Frank Morgner
740ad86e51 fixed handling of missing st keys 2015-01-25 03:21:21 +01:00
Frank Morgner
afe71f59b7 fixed handling max pin length 2015-01-25 03:18:34 +01:00
Frank Morgner
685443be04 added coverty scan to travis.yml 2015-01-21 09:26:58 +01:00
Frank Morgner
20c88ac8f4 Merge pull request #36 from d0/master
Extend CardGenerator unittests
2015-01-19 23:41:11 +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
cea6a1d8f5 use absolute path of manuals 2014-11-22 00:33:46 +01:00
Frank Morgner
d97e8d1916 fixed building of manuals 2014-11-21 23:48: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
4dd19dd484 released 0.6 2014-11-11 12:46:21 +01:00
Frank Morgner
3ff7f0e6ac fixed cross compiling for Windows 2014-11-11 09:18:47 +01:00
Frank Morgner
ad87cb4c4c update to OpenSC's master 2014-11-11 09:17:56 +01:00
Frank Morgner
fbe35e0594 cross compile for windows with static libgcc 2014-11-04 08:28:00 +01:00
Frank Morgner
0e147ffcaa update labels when connected 2014-11-04 00:14:56 +01:00
Frank Morgner
d4fd403e4e use a bigger presence check delay 2014-11-04 00:14:56 +01:00
Frank Morgner
441be5b489 propagate testing state when tag discovered 2014-11-04 00:14:56 +01:00
Frank Morgner
478353832a only capture tag by reader mode if possible 2014-11-04 00:14:56 +01:00
Frank Morgner
dc2e53634e clearifications on vpcd's docs 2014-11-03 18:02:11 +01:00