Am Montag, den 14.12.2009, 16:03 +0100 schrieb Andreas Jellinghaus:
> Am Montag 14 Dezember 2009 14:28:21 schrieb Martin Paljak:
> > On 14.12.2009, at 15:17, Andreas Jellinghaus wrote:
> > > Hi,
> > >
> > > is there a way to put a version on the card in some structure?
> > > so we can write code that sees:
> > > * ah, not initialized with opensc
> > > * ah, initialized with opensc (old version)
> > > * good, initialized with opensc (new version)
> > 
> > Probably yes, see http://www.opensc-project.org/opensc/ticket/71

The mentioned file shows no difference between 0.11.1 initialized cards
and with >= 0.11.5 initialized cards, sorry.


> hmm, that isn't read during signig, I guess only for changes
> to the card.
> 
> what about 5032 file?
At least the file differs in the different opensc versions:

Old 0.11.1 initialized card:
----8<-----8<----

domi...@ubuntu-devel:~/opensc-0.11.6/bin$ ./opensc-explorer
OpenSC Explorer version 0.11.6
OpenSC [3F00]> cd 5015
OpenSC [3F00/5015]> cat 5032
00000000: 30 3F 02 01 00 04 08 94 90 61 50 00 01 30 2F 0C
0?.......aP..0/.
00000010: 0E 4F 70 65 6E 53 43 20 50 72 6F 6A 65 63 74 80 .OpenSC
Project.
00000020: 0B 4F 70 65 6E 53 43 20 43 61 72 64 03 02 04 10 .OpenSC
Card....
00000030: 85 0F 32 30 30 39 31 32 30 31 31 31 34 35 32
35 ..20091201114525
00000040: 5A                                              Z
OpenSC [3F00/5015]> quit
----8<-----8<----

Same p12 written to a same kind of card but initialized with version
0.11.11:

----8<-----8<----
domi...@ubuntu-devel:~/opensc-0.11.6/bin$ ./opensc-explorer
OpenSC Explorer version 0.11.6
OpenSC [3F00]> cd 5015
OpenSC [3F00/5015]> cat 5032
00000000: 30 3F 02 01 00 04 08 25 90 61 50 00 01 26 2E 0C
0?.....%.aP..&..
00000010: 0E 4F 70 65 6E 53 43 20 50 72 6F 6A 65 63 74 80 .OpenSC
Project.
00000020: 0B 4F 70 65 6E 53 43 20 43 61 72 64 03 02 04 10 .OpenSC
Card....
00000030: 85 0F 32 30 30 39 31 32 31 34 30 37 35 39 30
35 ..20091214075905
00000040: 5A                                              Z
OpenSC [3F00/5015]> 
----8<-----8<----

Don't know if it is usable for us.


Regards,
Dominik

_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to