There is a typo in this function causing it to always fail. Fix below.
Index: ec_key.c
===================================================================
RCS file: /var/cvs/contrib/openssl/crypto/ec/ec_key.c,v
retrieving revision 1.4
diff -u -r1.4 ec_key.c
--- ec_key.c 28 Nov 2002 08:03:35 -0000 1.4
+++ ec_key.c 18 Feb 2003 17:04:51 -0000
@@ -199,7 +199,7 @@
/* copy the private key */
if (eckey->priv_key)
{
- ret->priv_key = BN_dup(ret->priv_key);
+ ret->priv_key = BN_dup(eckey->priv_key);
if (ret->priv_key == NULL)
ok = 0;
}
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]