Thanks!

2012/6/4 helpcrypto helpcrypto <helpcry...@gmail.com>

> > My objetive is to know how to write a OpenSC driver from APDU
> documentation.
> IIUC: You want to make your own "opensc-dnie", right?
>

No. I want to know more about driver developing for OpenSC.


>
> > but I've lost the way to connect the exercices with the final driver.
> Dont understand what this means.
>

For example:

[1] Select DNIe example:

~$ ./selectDNIe.py
insert a card (SIM card if possible) within 10s
connecting to C3PO LTC31 (80060327) 00 00
> 00 *A4* 00 00 02 60 1F
< [] 61 E
> 00 C0 00 00 0E
< ** ** ** ** ** ** ** ** ** ** ** ** ** ** 90 0
disconnecting from C3PO LTC31 (80060327) 00 00
disconnecting from C3PO LTC31 (80060327) 00 00
~$

[2] in card-dnie.c i found:

static int dnie_select_file(struct sc_card *card,
const struct sc_path *in_path,
struct sc_file **file_out)
...
sc_format_apdu(card, &apdu, SC_APDU_CASE_4_SHORT, *0xA4*, 0, 0);
...
res = sc_transmit_apdu(card, &apdu);

But I don't know what is the best way to pass from [1] to [2] (not for
dnie, generic steps).



>
> > On the other hand, if this manual doesn't already exist on the wiki and
> you're interested, I will write it.
> I am.
>
> PS: Why developing a "opensc-dnie" if already theres 1 (2) working?
>

I'm not developing dnie driver, only I'm working with the documentation for
explain the way to develop a driver and I think that this knowledge can be
interesting for the community.


Alejandro Díaz Torres
Área de Proyectos
Emergya Consultoría
Tfno: +34 954 51 75 77
Fax: +34 954 51 64 73www.emergya.es
_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to