ce7fa42958
Function sc_pkcs15init_update_file(): we will try to select the file, if file can not be selected, the file is created, and select operation is repeated. In both cases, the "selected_file" variable contains the current FCI of the selected file. Then the sc_pkcs15init_authenticate () function is called, but not with "selected_file" variable, but "file" variable where the FCP data is present (from the file creation operation). Difference between FCP and FCI (pkcs15-init -C / MyEID card). 62 17 80 02 00 FF 82 01 01 83 02 50 31 86 03 01 3F FF 85 02 00 00 8A 01 00 6F 17 80 02 00 FF 82 01 01 83 02 50 31 86 03 01 3F FF 85 02 00 00 8A 01 01 Here it is clear that the data from FCP are outdated. The card changed the TAG 0x8a from 0 to 1 ("no information given", "creation state".) We need to respect the authority of the card, FCI is to be used in next code, not FCP. modified: src/pkcs15init/pkcs15-lib.c |
||
---|---|---|
.github | ||
MacOSX | ||
doc | ||
etc | ||
m4 | ||
packaging/debian.templates | ||
src | ||
tests | ||
win32 | ||
.gitignore | ||
.gitlab-ci.yml | ||
.travis.yml | ||
COPYING | ||
Makefile.am | ||
Makefile.mak | ||
NEWS | ||
README | ||
README.md | ||
SECURITY.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.
Build and test status of specific cards:
Cards | Status |
---|---|
CAC | |
virt_CACard | |
Coolkey | |
PivApplet | |
OpenPGP Applet | |
GidsApplet | |
IsoApplet | |
OsEID (MyEID) |