List Info

Thread: Muscle card support for OpenSC - found the problem




Muscle card support for OpenSC - found the problem
user name
2006-08-15 06:46:56
Another thing sorry...is somewhere defined when to use
conversion functions
and when not to? I mean, in the previous version you had 

#if defined(_WIN32) || defined(_WIN64)
static unsigned long bswap_32(unsigned long x)
{
.......

..now it always calls bebytes2long? Am I missing something?

thanks, dejan

> -----Original Message-----
> From: Thomas Harning [mailto:harningidentityalliance.com] 
> Sent: Monday, August 14, 2006 7:25 PM
> To: Dejan Gambin
> Cc: musclelists.musclecard.com; 'Corcoran David'
> Subject: RE: [Muscle] Muscle card support for OpenSC -
found 
> the problem
> 
> On Sun, 13 Aug 2006 18:00:22 -0700
> "Dejan Gambin" <dejan.gambinpula.hr> wrote:
> 
> > error. Looking in debug log I can see it is trying
to create 
> > PKCS15-AODF with file-id of 4401, but the command
sent to 
> the card is 
> > B0 5A 00 00 0E 01 44 15 50.....while it should be
B0 5A 00 00 0E 50
> > 15 44 01. So it is being reversed and I suppoes it
is 
> related to the 
> > BIG ENDIAN problem thath was solved by using
function bebytes2ulong 
> > and similar. The 5015 folder is created OK so
muscle_create_file is 
> > working fine but muscle_create_file is not.
> > 
> > Any suggestion on how to solve this correctly?
> > 
> Hmm... I suppose there needs to be some endian
conversion 
> functions at the FileID boundaries...
> Strange thing is... I've been able to get this to work
on 
> windows previously...
> --
> Thomas Harning
>  Identity Alliance
> 

_______________________________________________
opensc-user mailing list
opensc-userlists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-
user
[1]

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