OpenSC fork, with some Italian healthcare smart card utils
Go to file
Doug Engert 111246f1d2 Better error debug messages for Minidriver
Add MD_FUNC_CALLED(pCardData, level) and  MD_FUNC_RETURN(pCardData, level, ...)
macros.

Handles are type __int3264 in VS2015 are casted as size_t when printing so
all bytes are printed. size_t on Windows are also treated as 32 or 64 bits.
SC_FORMAT_LEN_SIZE is used in the format.
 (Works with VS2105 needs to be tested on other platforms.)

 On branch minidriver-4

 Changes to be committed:
	modified:   minidriver.c

Minidriver.c and reader-pcsc.c - reuse OpenSC reader structure

Windows CNG is managing the insertion and removal of the reader and the card
and will call CardAcquireContext and CardDeleteContext as needed if
the card or reader change. But different processes or threads may establish
different PCSC connects to the same reader and card but with different handles.

Reuse the OpenSC reader when windows uses the same reader but with different
handles. Tests show the certutil -v -scinfo works the same.
Associate_card is only need when called from
CardAcquireContext and disassociate_card is only need when called from
CardDeleteContext.
No need to call reinit_card_for(pCardData, name) just because the handles changed.

This may be the fix for #1763 because calls like CardCreateContainerEx remain
in card state rather then being lost when the handles changed.

 Changes to be committed:
	modified:   src/libopensc/reader-pcsc.c
	modified:   src/minidriver/minidriver.c
2020-02-01 22:42:02 +01:00
.github CI: retry pushing 10 times to nightly 2019-10-18 14:31:09 +02:00
doc pkcs11-tool: add --usage-wrap (disabled by default) 2020-02-01 22:29:35 +01:00
etc sc-hsm: Add configuration section for 4K 2019-05-31 14:11:49 +02:00
m4 configure: Add option to generate code coverage (for unit tests) 2020-01-07 17:07:48 +01:00
MacOSX Checkout OpenSC.tokend when actually is needed 2020-01-28 09:59:34 +01:00
packaging/debian.templates fix LGPL version 2013-09-29 20:55:41 +02:00
src Better error debug messages for Minidriver 2020-02-01 22:42:02 +01:00
tests tests: Skip most of the broken tests on current Ubuntu 2020-01-08 14:32:41 +01:00
win32 sc-hsm: Add ATR for faster token variant 2019-12-04 21:43:47 +01:00
.gitignore unittests: Reproducer for undefined shift in ASN1 parser 2020-01-07 14:50:47 +01:00
.gitlab-ci.yml Integrated virt_CACard in CI jobs (#1757) 2019-08-20 15:17:14 +02:00
.travis.yml If make check does not pass, do not continue with other tests and dump logs 2020-01-08 12:57:35 +01:00
appveyor.yml prepare 0.20.0 2019-09-05 14:24:30 +02:00
bootstrap build: bootstrap script has expected content 2014-05-11 09:15:27 +02:00
bootstrap.ci bootstrap.ci: stop echoing executed commands 2018-05-21 20:45:04 +02:00
configure.ac configure: Add option to generate code coverage (for unit tests) 2020-01-07 17:07:48 +01:00
COPYING Import new license file with correct address 2020-01-09 15:35:11 +01:00
Makefile.am configure: Add option to generate code coverage (for unit tests) 2020-01-07 17:07:48 +01:00
Makefile.mak autostart is a subfeature of OpenSC tools 2019-04-08 11:16:13 +02:00
NEWS Updated NEWS 2019-12-29 13:39:01 +01:00
README link README to README.md 2015-11-02 23:54:36 +01:00
README.md Add fuzzing status to the readme 2019-10-25 20:22:40 +02:00
version.m4 version.m4: remove unused macro PACKAGE_VERSION_REVISION 2018-05-21 20:45:04 +02:00

OpenSC documentation

Wiki is available online

Please take a look at the documentation before trying to use OpenSC.

Travis CI Build Status AppVeyor CI Build Status Coverity Scan Status Language grade: C/C++ Fuzzing Status

Build and test status of specific cards:

Cards Status
CAC CAC
virt_CACard virt_CACard
Coolkey Coolkey
PivApplet PIV
OpenPGP Applet OpenPGP
GidsApplet GIDS
IsoApplet IsoApplet
OsEID (MyEID) OsEID (MyEID)