--- Sid Hegde <[EMAIL PROTECTED]> a �crit :
> Hi,
>
> Thanks for the tip. Your code did not work, but it
> work after being modified. Below is the modified
> code
>
> fp = BIO_new_file("private.pem", "r");
> pkey = PEM_read_bio_PrivateKey(fp, 0, 0, 0);
> if (pkey != NULL)
> key = EVP_PKEY_get1_RSA(pkey);
> EVP_PKEY_free(pkey);
>
> The main problem is that you have forgotten to
> mention
> what load_key does or the code in load_key. Anyways,
> thanks a lot for the help. If it was not for your
> code, I would not have been able to do it. I am new
> to
> OpenSSL so let me know if I can improve the above
> code.
My code is so general because it can load a private
key
in different format as an ASN1 format , PEM format,
Engine format, so when i specified PEM_FORMAT , it do
the tricks.
see crypto/apps/apps.c for more details for this
function .
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]