From: huangqinjin Date: Fri, 17 Jun 2016 12:55:15 +0000 (+0800) Subject: Make ossl_ecdh_compute_key() return a boolean X-Git-Tag: OpenSSL_1_1_0-pre6~356 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=65ea288d47bd3ec8c787108d7e56d8f5ff43281f;p=oweals%2Fopenssl.git Make ossl_ecdh_compute_key() return a boolean Reviewed-by: Rich Salz Reviewed-by: Matt Caswell --- diff --git a/crypto/ec/ecdh_ossl.c b/crypto/ec/ecdh_ossl.c index 715465c5fb..caf65de8c4 100644 --- a/crypto/ec/ecdh_ossl.c +++ b/crypto/ec/ecdh_ossl.c @@ -38,7 +38,7 @@ int ossl_ecdh_compute_key(unsigned char **psec, size_t *pseclen, { if (ecdh->group->meth->ecdh_compute_key == NULL) { ECerr(EC_F_OSSL_ECDH_COMPUTE_KEY, EC_R_CURVE_DOES_NOT_SUPPORT_ECDH); - return -1; + return 0; } return ecdh->group->meth->ecdh_compute_key(psec, pseclen, pub_key, ecdh);