Commit Graph

85 Commits

Author SHA1 Message Date
Frank Morgner
542be2323c fixed format specifier for strings 2021-12-17 00:13:55 +01:00
Frank Morgner
dd8b8b97f2 fixed format specifier for size_t 2021-12-17 00:13:55 +01:00
Frank Morgner
e1c6d90db8 fixed macro definition 2021-12-17 00:13:47 +01:00
Frank Morgner
8d0c7e9966 fixed avoiding OpenSC's GET RESPONSE 2021-12-17 00:13:46 +01:00
Frank Morgner
5921348c31 ccid: avoid OpenSC's internal apdu handling magic
fixes https://github.com/frankmorgner/vsmartcard/issues/211
2021-12-16 10:02:17 +01:00
David Ward
adac6a883f ccid-emulator: Update to use OpenSC 0.20.0 release 2020-04-11 10:09:27 -04:00
David Ward
bc8b237c5a ccid-emulator: Build libopensc from source code
There is no longer an external (or stable) interface for libopensc.
Linking this program with an existing version of libopensc that is
pre-installed in the system library paths is not practical.

However, a specific snapshot of the OpenSC source code is embedded
here as a Git submodule (and included in the source distributions).
Build libopensc from this and statically link it into this program.
(Options such as '--enable-openpace' that are passed to ./configure
will be forwarded to control the build configuration of libopensc.)

Remove code that existed for compatibility when dynamically linking
with older versions of libopensc.
2020-04-11 10:09:27 -04:00
Frank Morgner
c63cc40c34 fixed misuse of realloc
if called with size 0, realloc frees the buffer, which may eventually
lead to a double free corruption.
2019-01-17 15:04:35 +01:00
Frank Morgner
77eb263212 fixed compiler warnings 2016-11-08 14:07:01 +01:00
Frank Morgner
ee1f538b11 ccid-emulator: removed unused implementation 2016-10-10 13:14:02 +02:00
Frank Morgner
a8b22f7bef removed npa project
It has been replaced by https://github.com/frankmorgner/OpenSC
2016-10-08 01:14:41 +02:00
Frank Morgner
f681ad067a fixed missing reference to sc_sm_stop 2015-07-24 02:25:29 +02:00
Frank Morgner
3b8038398b sm_stop is now part of OpenSC as sc_sm_stop 2015-07-23 23:56:43 +02:00
Frank Morgner
e1443e6357 fixed unused check 2015-01-25 04:08:00 +01:00
Frank Morgner
444b14c8ca fixed bad pointer arithmetic 2015-01-25 03:27:33 +01:00
Frank Morgner
afe71f59b7 fixed handling max pin length 2015-01-25 03:18:34 +01:00
Frank Morgner
1e199d13bf fixed compilation issue 2014-05-27 08:27:01 +02:00
Frank Morgner
9943708510 fixed compiling ccid-emulator without libnpa
fixes #1
2014-04-27 22:24:19 +02:00
Frank Morgner
1a97573286 fixed parsing of bNumberMessage and response buffer for boxing error 2013-06-20 21:02:25 +02:00
Frank Morgner
70d10b9410 cleaned up scutils
- moved write/read_binary_rec to scutil.c
- removed unused handling of card driver
2013-06-13 08:25:11 +02:00
Frank Morgner
10920e0135 fixed pin modification for implicitly given new pin 2013-06-09 23:23:36 +02:00
Frank Morgner
58055517ed implemented boxing commands according to TR-03119 2013-06-09 23:23:36 +02:00
Frank Morgner
532d85ee53 use built-in function to parse pseudo apdu 2013-05-29 22:16:37 +02:00
Frank Morgner
e8fcbdeea5 updated ccid for new version of libnpa 2013-02-18 22:58:06 +01:00
frankmorgner
78fd66c8b5 fixed clang --analyze warnings
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@780 96b47cad-a561-4643-ad3b-153ac7d7599c
2012-04-24 12:10:44 +00:00
frankmorgner
6394a961c2 fixed clang compiler warnings
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@779 96b47cad-a561-4643-ad3b-153ac7d7599c
2012-04-24 11:49:31 +00:00
frankmorgner
5ad4fdfcdf get ef.cardaccess on demand. newer versions of ausweisapp dont screw this up anymore.
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@718 96b47cad-a561-4643-ad3b-153ac7d7599c
2012-02-17 18:43:51 +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
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
85158c9ed9 checking certificate description on pso:verify certificate
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@533 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-09-20 20:12:50 +00:00
frankmorgner
93d727841e dumping chat
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@532 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-09-20 19:41:31 +00:00
frankmorgner
d8e2eb9afc dumping certificate description
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@531 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-09-20 19:36:32 +00:00
frankmorgner
dc3164422a added ugly hack to support changing the eID-PIN with AusweisApp
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@529 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-09-14 14:24:30 +00:00
frankmorgner
b66134e000 fixed parsing of modification input
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@528 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-09-14 14:07:28 +00:00
frankmorgner
84d609ea51 - new pin was not included in apdu for pin modification (fixed)
- added support for modification/verification apdus from the host that don't contain any data. the reader automatically allocates the correct number of bytes for the pin(s) and modifies apdu's case and lc.


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@521 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-09-02 22:14:38 +00:00
frankmorgner
0f979c9563 fixed problems parsing pin modification data structure
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@520 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-09-02 19:29:10 +00:00
frankmorgner
e1e359b440 fixed bugs for pin modification
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@519 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-09-02 15:38:01 +00:00
frankmorgner
59b8a9b0da fixed bugs due to new version of opensc
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@517 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-09-02 13:48:17 +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
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
dea6b519ac added support for GetReaderInfo of BSI TR-03119
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@432 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-25 20:04:16 +00:00
frankmorgner
319e571cee - bugfix to be conform to OpenPACE API
- added consistency checks for lengths of APDUs


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@431 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-25 18:54:09 +00:00
frankmorgner
a1796eb535 adapted to the latest changes of libnpa
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@413 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-02-08 21:35:37 +00:00
frankmorgner
8cd77084cc renamed libpace to libnpa
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@403 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-02-02 18:49:14 +00:00
frankmorgner
da44cd7f86 - fixed problem when powering the card
- removed unused code that had to do with slot-complexity


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@387 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-01-15 00:35:52 +00:00
frankmorgner
19f8608712 supporting only one slot due to new opensc limitations
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@386 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-01-14 22:31:26 +00:00
frankmorgner
79dc468cc5 switched to opensc.0.12.0. note that this has some issues when linking against both libnpa and the opensc libraries at the same time. readme information would be usefull for this...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@385 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-01-14 14:24:04 +00:00
frankmorgner
d286f16ef7 adapted to the latest changes of libpace
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@375 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-12-08 15:11:26 +00:00
frankmorgner
bad4d94312 removed/replaced remains of libpace
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@361 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-11-15 09:27:05 +00:00
frankmorgner
c253da05b2 pace card supports extended lengths. note that we really need a card driver which covers that
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@344 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-10-27 14:50:38 +00:00