Frank Morgner
2909ba28a9
parse Extended Length Information in EF.ATR/INFO
2016-07-19 14:30:38 +02:00
Frank Morgner
9a325fc1db
EF.ATR: removed IAS/ECC workaround
...
- IAS/ECC has the category indicator byte in EF.ATR, which is a
violation of ISO 7816-4, where it is only allowed in the historical
bytes of ATR. Removing the IAS/ECC specific modification of EF.ATR
allows reading ISO complient EF.ATR again.
- IAS/ECC parsing should still be successfull. We now always try to
check for ISO7816_TAG_II_STATUS_SW ignoring the category indicator
byte
2016-07-19 14:30:31 +02:00
Frank Morgner
3d0064e983
don't expect the card to specify the file length in generic tools
...
if sc_file_t.size == 0 we try to read 1024 bytes by default.
2013-09-29 18:52:48 +02:00
Viktor Tarasov
58b4304957
libopensc: 'init', 'format', 'compare', 'is-valid' OID procedures
...
In a reason of number of bugs(*) that concern the OID management,
the general usage OID procedures 'init', 'format', 'compare', 'is-valid' are introduced.
These procedures should be used by all actors: libopensc, pkcs15, pkcs11, tools, ....
(*)
This bug reported by Andreas Schwier :
8e75d971cb (commitcomment-1792477)
In pkcs15-algo sc_asn1_get_algorithm_info() can return the OID without ending '-1's:
https://github.com/OpenSC/OpenSC/blob/staging/src/libopensc/pkcs15-algo.c#L452
https://github.com/OpenSC/OpenSC/blob/staging/src/libopensc/pkcs15-algo.c#L459
2012-09-06 10:47:29 +02:00
ludovic.rousseau
46946f285f
Remove dead code
...
ef-atr.c:41:16: warning: Value stored to 'category' during its initialization is
never read
unsigned char category = *buf;
^ ~~~~
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5156 c6295689-39f2-0310-b995-f0e70906c6a9
2011-02-05 21:04:28 +00:00
vtarasov
6ce28a6adb
libopensc: initialize 'sc_ef_atr' type variable
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5114 c6295689-39f2-0310-b995-f0e70906c6a9
2011-01-19 14:22:57 +00:00
vtarasov
772ab4cefb
libopensc: parse EF.ATR: redefine 'STATUS' macros ...
...
thanks to Andre Zepezauer for his precious remarks
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5083 c6295689-39f2-0310-b995-f0e70906c6a9
2011-01-11 10:29:23 +00:00
vtarasov
8f5f0b684a
libopensc: remove non-ISO7816 members from the EF.ATR data, thanks to Andre Zepezauer
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5079 c6295689-39f2-0310-b995-f0e70906c6a9
2011-01-10 14:15:37 +00:00
vtarasov
8f2c96863a
libopensc: do not return 'SUCCESS' if EF.ATR do not exist ...
...
debug messages
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5065 c6295689-39f2-0310-b995-f0e70906c6a9
2011-01-09 08:51:55 +00:00
vtarasov
bf4aa793af
libopensc: parse content of the EF(ATR) file
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5059 c6295689-39f2-0310-b995-f0e70906c6a9
2011-01-07 15:49:10 +00:00