f5dc252aa9
Set pin references to 0x01 - 0x03 instead of 0x81 - 0x83. The PINs are referenced as PIN1- PIN3 (resp. PW1 - PW3) in the OpenPGP card specification. Technically the APDUs to verify/change the PINs contain the values OR-ed with 0x80, but this is just a technical detail of the implementation which the emulated file system can hide in pgp_pin_cmd(). Pros & Cons: + consistent PIN naming + no trouble entering the correct PIN names in opensc-explorer et.al. ("verify CHV1" is way better than "verify CHV129") - manually entering the correct APDU for VERIFY is a bit more complex. (who does this anyway, when there are better functions) While at it, change if .. elsif ... cascade to switch statement. |
||
---|---|---|
MacOSX | ||
doc | ||
etc | ||
m4 | ||
solaris | ||
src | ||
win32 | ||
.gitignore | ||
COPYING | ||
Makefile.am | ||
Makefile.mak | ||
NEWS | ||
README | ||
bootstrap | ||
configure.ac | ||
svnignore |
README
OpenSC documentation wiki is available online at http://www.opensc-project.org/opensc/ Please take a look at the documentation before trying to use OpenSC.