Hi

Bingo !
I'm a stupid freak imbecile guy :-! :-[ :'(
I've just a very tiny excuse : the 3 lines of code I didn't show you, which are executed when there is no error are supposed to log the stored certificate. But the log was set up at a too detailed level, which I don't activate usually ! So I never saw that the first certificate was correctly inserted during the first loop !

Anyway I feel like somebody escaping from a psychiatric hospital !
Give me your address : you won a bottle of french wine !

Thanks and best regards,

--
Francis GASCHET / NUMLOG
http://www.numlog.fr
Tel.: +33 (0) 130 791 616
Fax.: +33 (0) 130 819 286




Le 05/29/2008 11:31 PM Mounir IDRASSI a écrit  :
Hi,

The only thing I see in your code is that, inside the while block, you are
not setting the CA variable to the next element of the list Gl_listeCA.
Thus, at the second loop you will always get an error when calling
X509_STORE_add_cert because CA->x509 is pointing to the same certificate
as in the previous loop.
Can you confirm that the code is really like this? Does the working
application have the same code?

Cheers,

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [email protected]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to