Thanks Stephen.

I have a CPP file which has been programmed by another programmer (Say A
).
This CPP file has a member function ( fun of class test ) which accepts
the parameters of the function
PEM_read_bio_PKCS8_PRIV_KEY_INFO(SAME_PARAMETERS)

[

that is fun is defined like this
fun(SAME_PARAMETERS)
{
//some stuff
}

]

Now I am not supposed to modify A's code and I am calling that function
using that class's (test's ) object.
What I need to know is how the parameters should be initialized before
passing values to that function (fun of class test ).

Of course we can override that function with another class inheriting
the class test and making my own implementation of a function calling
PEM_read_bio_PrivateKey.
But for this case I need to repeat the process what has been implemented
in the function fun.
One more thing is that I need the source code of programmer A.
Another issue is that, if in future Programmer A changes his source code
I need to do the same in my own implementation of that function (fun).

But as I have mentioned in the previous mail, I want to use this
function (fun of class test ) in my program

Thanks,
Murugesan


On Fri, 2004-03-19 at 17:42, Dr. Stephen Henson wrote:
> 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]


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to