On Sat, Dec 20, 2003, Dr. Stephen Henson wrote:

> On Fri, Dec 19, 2003, Lev Walkin wrote:
> 
> > 
> > The PEM(3) manual page specifies a way to read a certificate in PEM format
> > from a BIO:
> > 
> > === cut ===
> >        Although the PEM routines take several arguments in almost
> >        all applications most of them are set to 0 or NULL.
> > 
> >        Read a certificate in PEM format from a BIO:
> > 
> >         X509 *x;
> >         x = PEM_read_bio(bp, NULL, 0, NULL);
> >         if (x == NULL)
> >                {
> >                /* Error */
> >                }
> > === cut ===
> > 
> > 
> > It is erroneous and misleading because
> > 1. There is no PEM_read_bio() function described in that manual page.
> > 2. The actual PEM_read_bio() declaration is
> > 
> > int PEM_read_bio(BIO *bp, char **name, char **header, unsigned char **data,
> >              long *len);
> > 
> 
> And 
> 
> 3. Applications shouldn't call PEM_read_bio() themselves.
> 
> As should be apparent its a typo: it should be PEM_read_bio_X509().
> 

And its now fixed. Many thanks for the report.

Steve.
--
Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage
OpenSSL project core developer and freelance consultant.
Funding needed! Details on homepage.
Homepage: http://www.drh-consultancy.demon.co.uk
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to