G'day,
Following on from my problem with viewing multiple data objects, I wrote
a test program (attached) that performs the following:
o Confirm that no data objects exist on the card
o Create a data object
o Delete the created data object
o Confirm that no data objects exist on the card
On a card with no data objects on it (as confirmed by muscleTool), this
is what I get:
$ ./p11-delete-data-object-test --module
/usr/local/lib/libmusclepkcs11.so --slot 1 --pin 00000000
## Loading module: /usr/local/lib/libmusclepkcs11.so ...ok
## Opening session for slot = 01 ... ok
## Performing login with PIN '00000000' .... ok
## Searching for data object ... ok (no objects found)
## Creating data object ... ok (handle = 0x804D508)
## Deleting object 0x804D508 ... ok
## Searching for data object ... ok (object=0x804D508)
Error: data object was not deleted
Using muscleTool shows the following objects:
muscle [MuscleCard Applet] > list
Object ID Object Size READ WRITE DELETE
----------------- ----------- ------ ------ ------
o0 512 ALWAYS PIN #1 PIN #1
O0 4 PIN #1 PIN #1 PIN #1
Which seems to indicate that the C_DestroyObject implementation does not
work, at least for data objects (unless I'm doing something wrong).
-- Geoff
_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle