Hi,
This is a patch against openssl-1.0.0-stable-SNAP-20091129 which
corrects the way the error code returned by ECDSA_sign is handled in the
function pkey_ec_sign.
Cheers,
--
Mounir IDRASSI
IDRIX
http://www.idrix.fr
--- H:/Dev/libraries/openssl-1.0.0-stable-SNAP-20091129/crypto/ec/ec_pmeth.c
Wed Nov 5 19:38:56 2008
+++ H:/Dev/libraries/openssl-1.0.0-stable-SNAP-20091129/crypto/ec/ec_pmeth_1.c
Sun Nov 29 20:58:37 2009
@@ -143,7 +143,7 @@
ret = ECDSA_sign(type, tbs, tbslen, sig, &sltmp, ec);
- if (ret < 0)
+ if (ret <= 0)
return ret;
*siglen = (size_t)sltmp;
return 1;