[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: pkinit with smartcard
Hello Olga,
I can't reprodunce the problem using my software pkcs11 module
so I need some more infomation to track the problem.
What backtrace you get and can you tell me anything special
about your environment.
Love
11 dec 2006 kl. 06.21 skrev Olga Kornievskaia:
> thanks. the patch solved the seg fault problem. now i'm seeing the
> following message:
> pkcs11 module release while session in use
> Abort
>
> any ideas as to what is going on?
>
> Love Hörnquist Åstrand wrote:
>> Please try the attached patch. The pkcs11 code ever set a default
>> sig alg
>> (it really needs to be sig alg_s, but that will have to change
>> later), that made
>> the supportedCMStypes code explode.
>>
>> Love
>>
>> ---------------------------------------------------------------------
>> ---
>>
>> Index: crypto.c
>> ===================================================================
>> RCS file: /afs/pdc.kth.se/src/packages/kth-krb/SourceRepository/
>> lib/hx509/crypto.c,v
>> retrieving revision 1.60
>> retrieving revision 1.61
>> diff -u -p -u -w -r1.60 -r1.61
>> --- lib/hx509/crypto.c 6 Dec 2006 10:23:14 -0000 1.60
>> +++ lib/hx509/crypto.c 9 Dec 2006 12:56:34 -0000 1.61
>> @@ -1264,6 +1264,7 @@ _hx509_private_key_assign_rsa(hx509_priv
>> if (key->private_key.rsa)
>> RSA_free(key->private_key.rsa);
>> key->private_key.rsa = ptr;
>> + key->signature_alg = oid_id_pkcs1_sha1WithRSAEncryption();
>> key->md = &pkcs1_rsa_sha1_alg;
>> }
>>
>> ---------------------------------------------------------------------
>> ---
>>
>>