On Fri, Mar 19, 2004, murugesandins wrote:
> Hello all
> some how (from gdb ) I got the definition for the function
>
> Bio *bp,
> PKCS8_PRIV_KEY_INFO *pkcs8;
> int num;
>
> PEM_read_bio_PKCS8_PRIV_KEY_INFO(bp,&pkcs8,&num, "test");
>
>
> bp can be set to BIO_new_file("pkcs8","r")
>
> where pkcs8 is generated by the command
> openssl pkcs8 -passout pass:pass -in rsakey -out pkcs8
>
>
>
> I need to know the values for the other parameters ( 2nd 3rd. I support
> the third parameter is the password we give for the above command.
>
>
> One more thing that I would like to add.
>
> Even though gdb lists me the type for the third parameter as integer,
> I get a warning that the third parameter is not correct.
>
> How to get rid of these two issues.
>
What exactly are you trying to do?
If you just want your application to be able to process a PKCS#8 format PEM
private key then the function PEM_read_bio_PrivateKey() will handle this along
with various other formats.
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
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]