List Info

Thread: Muscle card support for OpenSC - solved this problem




Muscle card support for OpenSC - solved this problem
user name
2006-09-14 05:21:29
Maybe somebody could post it as a ticket/patch in trac?

> > I have been able to solve the problem with
muscle_create_file using the
> > following:
> >
> > - instead of calling mscfs_lookup_local(fs,
file->id, (u8*)&objectId); I
> > have put:
> >       objectId[0] = fs->currentPath[0];
> >       objectId[1] = fs->currentPath[1];
> >       objectId[2] = (file->id >> 8) &
0xFF;
> >       objectId[3] = file->id & 0xFF;
> >
> > and after that modified the call to
msc_create_object to: r =
> > msc_create_object(card, bebytes2ulong(objectId),
objectSize, read, write,
> > delete); If I can see, muscle_create_directory is
doing the similat thing. I
> > don't know if this is the error but this works
for me on Windows...


-- 
Martin Paljak
martinpaljak.pri.ee
http://martin.paljak.pri
.ee/
+372.515.6495 - phone
_______________________________________________
opensc-devel mailing list
opensc-devellists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc
-devel
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )