On Mon, Sep 08, 2003, Alexander Krizhanovskiy wrote: > Hello, > > I know that this theme discussed a lot. > > I have a code: > > char *passwd = "123456"; > FILE F1 = fopen("key.pem", "wb"); > PEM_write_RSAPrivateKey(F1, rsa, EVP_des_cbc(), NULL, 0, NULL, passwd); > fclose(F1); > ..... > FILE F2 = fopen("key.pem", "rb"); > RSA *rsa_2 = RSA_new(); > rsa_2 = PEM_read_RSAPrivateKey(F1, NULL, NULL, passwd); > > and after that rsa2 = NULL, why? > Sorry, but I can't find answer for my question. >
Did you *try* the FAQ? The bit that tells you how to get more detailed error information and the cause? Steve. -- Dr Stephen N. Henson. Core developer of the OpenSSL project: http://www.openssl.org/ Freelance consultant see: http://www.drh-consultancy.demon.co.uk/ Email: [EMAIL PROTECTED], PGP key: via homepage. ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]