On Sat, Mar 20, 2004, murugesandins wrote: > 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 >
The function is similar to the stuff in the pem manual page and there is an example of its use in the pkcs8 application in apps/pkcs8.c Basically it reads in a PEM format unencrypted PKCS#8 private key and returns a PKCS8_PRIV_KEY_INFO structure. 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]