Could you tell me more detail about its parameters?
BIO *bp = ?
EVP_PKEY *x = ?
int nid = ?
char *kstr = ?
int klen = ?
pem_password_cb *cb = ?
void *u = ?
I've tried documentation sample and doesn't work! :o(
if (!PEM_write_bio_PKCS8PrivateKey(bp, key, EVP_des_ede3_cbc(), NULL, 0, 0,
"hello"))
{}
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Dr S N Henson
Sent: Wednesday, September 19, 2001 7:55 PM
To: [EMAIL PROTECTED]
Subject: Re: Encrypt Private Key
READ THE FAQ!
Also, although PKCS8_encrypt() does work there are better ways to do
this using PEM functions, check the latest documentation on
www.openssl.org for the PEM functions specifically:
int PEM_write_bio_PKCS8PrivateKey_nid(BIO *bp, EVP_PKEY *x, int nid,
char *kstr, int klen,
pem_password_cb *cb, void *u);
which can peform encryption and output in one call.
Steve.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]