I found It!
Problem is somewhere  in other code than PEM_X509_INFO_read_bio. In this
code is called
   error=ERR_GET_REASON(ERR_peek_error());
   if (error == PEM_R_NO_START_LINE)
but in error is number 0d0ee007 (that is not PEM error, but ASN1 error from
other code, maybe from d2i_X509_bio!)

solution is call ERR_clear_error(); before PEM_X509_INFO_read_bio(); ! this
clear error structure and next work all fine, but I think, this solution is
not pure.

Martin

> Hi Martin
>
> I didn't solve it, and I didn't receive any answers from the OpenSSL guys.
> What I do now is, that I have re-arranged my code so the
> PEM_X509_INFO_read_bio() function is the first thing I call..... then it
> works.
> Try posting your error to the OpenSSL mailing list. Maybe they will listen
> to you.
>
> Let me know if you find out what is wrong.....I'll do the same for you.
>
> Regards,
> Kim
>
>
> -----Oprindelig meddelelse-----
> Fra: Martin Szotkowski [mailto:[EMAIL PROTECTED]]
> Sendt: 19. januar 2001 12:54
> Til: Hellan,Kim KHE
> Emne: Bug in PEM_X509_INFO_read_bio() ??
>
>
> Hi Kim,
> I have same problem, but I don't know solution. How you resolve this
> problem?
>
> thanks Martin

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to