> > Not sure about PEM_read_RSAPublicKey, but the following call to >PEM_read_bio_RSAPublicKey works for me: > > BIO * bio = NULL; > RSA * rsa = NULL; > > bio = BIO_new (BIO_s_file ()); > > if (!bio) > { > // Handle error here. > } > > if (BIO_read_filename (bio, publicKeyFile) <= 0) > { > // Handle error here. > } > > rsa = PEM_read_bio_RSAPublicKey (bio, NULL, NULL, NULL); > > where publicKeyFile is a const char *.
that's interesting, but why using BIO ? ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]