Hi,
When the EC key is processed and the text portion is set to stdout, the
return value seems to show as a FAILURE though no errors occur.
# openssl ecparam -out eckey_secp128r1.pem -name secp128r1 -genkey
# openssl ec -in eckey_secp128r1.pem -text -noout
# echo $?
1
The reason was the return value, "ret" is not changed to SUCCESS and the
patch is given below.
--- apps/org_ec.c 2005-05-31 17:31:49.000000000 +0000
+++ apps/ec.c 2006-12-05 09:50:59.000000000 +0000
@@ -347,7 +347,10 @@
}
if (noout)
+ {
+ ret=0;
goto end;
+ }
BIO_printf(bio_err, "writing EC key\n");
if (outformat == FORMAT_ASN1)
--Haridharan.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [email protected]
Automated List Manager [EMAIL PROTECTED]