C_OpenSession() creates a long int session handle from address of allocated session struct, however it has to be taken into consideration that on Win64 long int is still 32-bit, so the address is going to be truncated and because of that not guaranteed to be unique. Add session handle uniqueness check to catch when there is already a session with the same handle present. This also fixes a warning when building on 64-bit mingw. Signed-off-by: Maciej S. Szmigiero <mail@maciej.szmigiero.name> |
||
---|---|---|
MacOSX | ||
doc | ||
etc | ||
m4 | ||
packaging/debian.templates | ||
solaris | ||
src | ||
win32 | ||
.gitignore | ||
.travis.yml | ||
CONTRIBUTING.md | ||
COPYING | ||
ISSUE_TEMPLATE.md | ||
Makefile.am | ||
Makefile.mak | ||
NEWS | ||
README | ||
README.md | ||
appveyor.yml | ||
bootstrap | ||
bootstrap.ci | ||
configure.ac | ||
version.m4 |
README.md
OpenSC documentation
Wiki is available online
Please take a look at the documentation before trying to use OpenSC.