Re: [opensc-devel] Problems with pkcs15

2009-03-12 Thread Andreas Jellinghaus
Am Donnerstag 12 März 2009 10:04:44 schrieb Marc Rios Valles: > Hi Andreas, > > I have found the error in my profile. I had a template and because of > this the files wasn't readed. Thank You a lot for all the help! Now > works correct. good to hear that. your welcome! Regards, Andreas __

Re: [opensc-devel] Problems with pkcs15

2009-03-12 Thread Marc Rios Valles
Hi Andreas, I have found the error in my profile. I had a template and because of this the files wasn't readed. Thank You a lot for all the help! Now works correct. Best Regards -- Marc Rios Vallès m...@c3po.es C3PO, S.A. http://www.c3po.es C/ Alejandro Goicoechea, 6 Local 9 - 08960 St. Just

Re: [opensc-devel] Problems with pkcs15

2009-03-12 Thread Andreas Jellinghaus
Am Donnerstag 12 März 2009 08:23:23 schrieb Marc Rios Valles: > Hi, > > Here is the debug of the function sc_pkcs15init_change_attrib(). > > First, in my profile I have this files: > 3f0051156001 Private key EF > 3f0051156002 Public key EF > 3f0051156006 Certificate EF > > And you can look in the p

Re: [opensc-devel] Problems with pkcs15

2009-03-12 Thread Marc Rios Valles
Hi, Here is the debug of the function sc_pkcs15init_change_attrib(). First, in my profile I have this files: 3f0051156001 Private key EF 3f0051156002 Public key EF 3f0051156006 Certificate EF And you can look in the pkcs15.profile the other files. I attach you the debug because it a little lo

Re: [opensc-devel] Problems with pkcs15

2009-03-11 Thread Andreas Jellinghaus
Am Mittwoch 11 März 2009 08:06:45 schrieb Marc Rios Valles: > On Tue, 2009-03-10 at 18:19 +0100, Andreas Jellinghaus wrote: > > Hi Marc, > > Hi andreas > > > could you be more specific, what your problem is? > > > > maybe you can debug your code and tell us if > > df->file and file differ after the

Re: [opensc-devel] Problems with pkcs15

2009-03-11 Thread Marc Rios Valles
On Tue, 2009-03-10 at 18:19 +0100, Andreas Jellinghaus wrote: > Hi Marc, Hi andreas > could you be more specific, what your problem is? > > maybe you can debug your code and tell us if > df->file and file differ after the sc_profile_get_file_by_path > call. > In df->file I have the correct struct

Re: [opensc-devel] Problems with pkcs15

2009-03-10 Thread Andreas Jellinghaus
Hi Marc, could you be more specific, what your problem is? maybe you can debug your code and tell us if df->file and file differ after the sc_profile_get_file_by_path call. getting a file structure from profile data is quite normal in opensc code as far as I can see, as you need it for every new

Re: [opensc-devel] Problems with pkcs15

2009-03-10 Thread Douglas E. Engert
Marc Rios Valles wrote: > Hi, > > I am adapting the source code of a driver that works with opensc-0.11.4 > to works with opensc-0.11.7. I am having problems with the function > sc_pkcs15init_change_attrib and concretly with this lines: > > if (r >= 0) { > sc_file_t *file; >

Re: [opensc-devel] Problems with pkcs15

2009-03-10 Thread Marc Rios Valles
I am working with Ceres (FNMT WG10) card but I don't know if its relevant. I've been debugging and it always search only in pkcs15.profile. If I change my DF in the pkcs15.profile works perfect but I think it's not the right place to put it... I think in two options: search the corresponding profil

Re: [opensc-devel] Problems with pkcs15

2009-03-10 Thread Fleblanc
Perhaps you can specify your own profile, so you can fixe exactly the location of your file... François Leblanc. Marc Rios Valles a écrit : > Hi, > > I am adapting the source code of a driver that works with opensc-0.11.4 > to works with opensc-0.11.7. I am having problems with the function > s