On Sat, Jan 24, 2004, S.Mehdi Sheikhalishahi wrote: > Dear Stephen > I don't want to show me "Enter PEM pass phrase:". > I want to get password as parameter of function.So I > can in my source pass password value to the function. > Thanks.
That's what I told you: set the last parameter to the pass phrase. "Dr. Stephen Henson" <[EMAIL PROTECTED]> wrote: > > On Sat, Jan 24, 2004, S.Mehdi Sheikhalishahi wrote: > > > > > Hi All > > > I want to change this that when I call > > > PEM_read_PrivateKey to read a private key that has > > > been encrypted with password instead of showing me > > the > > > prompt to enter password I can set the password > > > parameter to it(function). > > > Means > > > PEM_read_PrivateKey (xxxxxx,..,password); > > > > > > > This is documented in the pem manual page: if the > > last parameter is NULL (and > > the callback 0) it prompts for a passphrase. If > > instead you set the callback > > to 0 and the last parameter to a null terminated > > passphrase it doesn't prompt > > and uses that instead. > > 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 Development Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
