Use this :
if ((bio_err=BIO_new(BIO_s_file())) != NULL)
BIO_set_fp(bio_err,stderr,BIO_NOCLOSE|BIO_FP_TEXT);
pkey = load_key(bio_err,argv[1],FORMAT_PEM, 1,
NULL, NULL, "Private Key");
if (pkey != NULL)
rsa = pkey == NULL ? NULL :
EVP_PKEY_get1_RSA(pkey);
EVP_PKEY_free(pkey);
where pkey is EVP_PKEY * key, and rsa is an RSA* key,
and argv[1] is the file which you passed in your
command line .
goog luck .
Abdou,
Vous manquez d�espace pour stocker vos mails ?
Yahoo! Mail vous offre GRATUITEMENT 100 Mo !
Cr�ez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/
Le nouveau Yahoo! Messenger est arriv� ! D�couvrez toutes les nouveaut�s pour
dialoguer instantan�ment avec vos amis. A t�l�charger gratuitement sur
http://fr.messenger.yahoo.com
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]