Commit Graph

68 Commits

Author SHA1 Message Date
frankmorgner
5b10df505b adapted to changes of https://github.com/frankmorgner/OpenSC
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@719 96b47cad-a561-4643-ad3b-153ac7d7599c
2012-02-20 12:20:20 +00:00
frankmorgner
f11a7a8d33 removed unused declaration
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@710 96b47cad-a561-4643-ad3b-153ac7d7599c
2012-02-03 11:49:19 +00:00
frankmorgner
770b600706 return SC_SUCCESS instead of 0
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@709 96b47cad-a561-4643-ad3b-153ac7d7599c
2012-02-01 20:46:42 +00:00
frankmorgner
d804becc74 removed handling of CAR and CHR, this is done in TA by OpenPACE
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@708 96b47cad-a561-4643-ad3b-153ac7d7599c
2012-02-01 20:45:19 +00:00
frankmorgner
836fbdf455 enable time check for imported certificates
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@707 96b47cad-a561-4643-ad3b-153ac7d7599c
2012-02-01 20:35:02 +00:00
frankmorgner
d0a8df4d59 removed card driver hack. use a better opensc instead (see https://github.com/frankmorgner/OpenSC)
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@706 96b47cad-a561-4643-ad3b-153ac7d7599c
2012-02-01 20:34:27 +00:00
frankmorgner
da253c888f adapted to openpace
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@705 96b47cad-a561-4643-ad3b-153ac7d7599c
2012-02-01 20:31:42 +00:00
frankmorgner
4ede307a1b always print a message in case of an error
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@697 96b47cad-a561-4643-ad3b-153ac7d7599c
2012-01-25 15:07:38 +00:00
frankmorgner
2ed6a468fc using patched OpenSC enabled with PACE to use the reader's capabilities
sourcecode can be fetched from here https://github.com/frankmorgner/OpenSC


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@696 96b47cad-a561-4643-ad3b-153ac7d7599c
2012-01-25 15:04:52 +00:00
oepen
2600b5778d Adjusted libnpa to API changes in OpenPACE
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@680 96b47cad-a561-4643-ad3b-153ac7d7599c
2012-01-18 16:06:56 +00:00
frankmorgner
b2a7578fbf git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@660 96b47cad-a561-4643-ad3b-153ac7d7599c 2011-12-09 13:50:14 +00:00
frankmorgner
08eaf8ca4b adapted to openpace
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@641 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-12-07 21:16:40 +00:00
frankmorgner
f6af548d37 added no-undefined for building a dll
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@636 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-11-08 19:51:29 +00:00
frankmorgner
27a3385f36 - using unsigned long long for constant max value of puk
- fixed fixup_la
- guessing building machine


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@634 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-11-07 21:55:37 +00:00
frankmorgner
abc0bfb657 using 64 bits for value of puk
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@632 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-11-07 20:58:01 +00:00
frankmorgner
2ae1b1b609 break secrets from bottom to top
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@631 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-11-07 16:12:13 +00:00
frankmorgner
5d1071f68f car and certificate description are now optional for npa_ctx_create
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@630 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-11-07 15:51:43 +00:00
frankmorgner
48ca031930 omitting initialize for ta for unauthenticated terminals
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@629 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-11-07 15:24:02 +00:00
frankmorgner
17996f488a fixed reference to cvc_cert function
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@619 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-11-05 10:30:59 +00:00
frankmorgner
d2153ce323 work on cross compile build
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@615 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-11-05 03:30:36 +00:00
frankmorgner
15333a7259 correctly include example
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@593 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-10-29 19:59:36 +00:00
frankmorgner
f7766a3b5a minor simplifications
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@576 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-10-26 13:50:14 +00:00
frankmorgner
bcedbe13fe git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@574 96b47cad-a561-4643-ad3b-153ac7d7599c 2011-10-26 13:14:02 +00:00
frankmorgner
7fd5d06b4d including a simple example program mainly for documentation
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@573 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-10-26 13:07:12 +00:00
frankmorgner
9c3b56708b include npa.h as global resource
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@572 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-10-26 12:21:40 +00:00
frankmorgner
17428d2d74 Compromise with documentation: Include the most important parts of libnpa with
breathe and reference the details with doxylink to external doxygen pages


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@567 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-10-25 19:35:29 +00:00
frankmorgner
ea4c81ef6f documentation: grouping and other things
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@565 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-10-24 19:23:44 +00:00
frankmorgner
fa767abec2 added workaround to avoid potentially conflicting types of mse:set at's
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@560 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-10-18 09:03:13 +00:00
frankmorgner
061770da81 - found OpenSSL's limitation to not use optional item templates in other item templates. this caused errors on parsing mse:set at during ta
- checking terminal's signature now seems stable, so it is enabled by default


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@559 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-10-17 14:29:03 +00:00
frankmorgner
290fe90f3c - added support for verifying terminal's signature including auxiliary data (experimental, currently disabled)
- debugging openssl where possible/needed
- using openssl instead of opensc for asn1


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@556 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-10-17 11:28:47 +00:00
oepen
57b717a3a3 -Converted CVC_check_cert function call to CVC_check_description
-Removed README.dox from Doxygen input
-Excluded opensc from the documentation
-Enabled generation of XML documentation (for sphinx)


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@549 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-10-13 13:41:55 +00:00
frankmorgner
5ab6ee7162 fixed error on using stdout as debug log
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@542 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-09-30 15:42:11 +00:00
frankmorgner
1792046547 implemented ssl_error as macro
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@541 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-09-30 15:41:37 +00:00
frankmorgner
7c2be6b93c implemented ssl_error as macro
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@540 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-09-30 15:41:23 +00:00
frankmorgner
c968af76f9 - fixed type of auxiliary data in c-apdu
- parsing mse:set for ta
- check terminals signature for ta


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@538 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-09-23 15:35:47 +00:00
frankmorgner
fd6a13263d - checking description against the certificate is now done internally in libnpa, removed hash of certificate description from pace output
- importing terminal certificates to verify terminals signature
- fixed hex dump without sc_context


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@537 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-09-23 13:19:59 +00:00
frankmorgner
2a59a1806a - fixed corruption of certificate description
- adjusted output parsing from certificate_description_print
- fixed check for certificate description in terminal certificate


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@536 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-09-22 13:48:59 +00:00
frankmorgner
62d8b637ab generating cv certificate from apdu data to perform check against certificate description
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@535 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-09-21 22:08:52 +00:00
frankmorgner
a75ae8a2bd handling certificate description and chat in libnpa instead of ccid-emulator
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@534 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-09-20 21:22:32 +00:00
frankmorgner
cfc8691891 added error checking
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@522 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-09-02 22:15:04 +00:00
frankmorgner
495022b38a - added openssl debug code to ccid emulator
- fixed some bugs due to changes in recent opensc version
- added support for changing pin via standard leser


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@511 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-08-30 15:55:40 +00:00
oepen
65a63fac53 Fixed some compiler warnings
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@443 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-28 09:41:35 +00:00
frankmorgner
14fb0aefe9 adjusted to changes of OpenPACE
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@438 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-26 11:17:20 +00:00
frankmorgner
d3b7dd4dac switched to opensc 0.12.1, where build_apdu has been accepted as sc_bytes2apdu
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@433 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-25 21:14:28 +00:00
frankmorgner
8683459ebb fixed memory leaks
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@423 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-05-20 09:11:25 +00:00
frankmorgner
6fdd7bf560 - sm.c: added test for available memory
- npa.c: removed obsolete comments


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@421 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-05-20 08:44:20 +00:00
frankmorgner
e378d28e21 fixed segfault on cleanup
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@420 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-05-20 08:23:10 +00:00
frankmorgner
5cfe7d0443 fixed usage of PACE_SEC_clear_free
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@419 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-05-18 11:41:34 +00:00
frankmorgner
201f2f33b2 adapted to openpace 0.6
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@418 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-05-17 19:04:45 +00:00
frankmorgner
3674c41f66 added compatibility to mingw
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@408 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-02-06 20:26:37 +00:00