On Wed, Jan 21, 2004, S.Mehdi Sheikhalishahi wrote:

> Hi All
>  What's the equivalent function for PEM_read_PUBKEY in
> SSLeay?
> I want to read a public key but I cannot read It by
>  rsa = PEM_read_RSAPublicKey(fkeyfile, 0 ,0);
> function .The rsa is NULL.

There isn't an equivalent: it's OpenSSL only.

You can however use PEM_write_RSAPublicKey() on OpenSSL and
PEM_read_RSAPublicKey() on SSLeay.

Use of SSLeay however is strongly discouraged: it hasn't been maintained for
some years and has lots of unpatched (and well known) security
vilnerabilities.

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