RE: PEM_read_RSAPrivateKey() does not call callback function

2008-03-26 Thread learning openssl
Hello Steve, Thanks! It works. > Date: Tue, 25 Mar 2008 18:00:58 +0100 > From: [EMAIL PROTECTED] > To: openssl-users@openssl.org > Subject: Re: PEM_read_RSAPrivateKey() does not call callback function > > On Tue, Mar 25, 2008, learning openssl wrote: > > > >

Re: PEM_read_RSAPrivateKey() does not call callback function

2008-03-25 Thread Dr. Stephen Henson
On Tue, Mar 25, 2008, learning openssl wrote: > > Hello, > > I created a private key with password. But I can not read that key again. And > the callback function "pass_cb" was not called at all. > Add a call to OpenSSL_add_all_algorithms(). See the FAQ for the reason. Steve. -- Dr Stephen N

PEM_read_RSAPrivateKey() does not call callback function

2008-03-25 Thread learning openssl
Hello, I created a private key with password. But I can not read that key again. And the callback function "pass_cb" was not called at all. FILE *privateKeyFilePW; RSA *keyReading=NULL; privateKeyFilePW =fopen("PrivatekeyPW.pem", "w"); PEM_write_RSAPrivateKey(privateKeyFilePW, r,EVP_des_ede3_c