summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2019-08-05 16:13:24 +0100
committerMatt Caswell <matt@openssl.org>2019-08-06 11:34:10 +0100
commitda4ea0cfe63619899ceb7575a7c8fbf1507fdcb6 (patch)
tree416c4ab57aca68879368533cd841765795422fe1 /include
parentbd1a74f8ee92d2b63d19308fd3dfee2936af9d17 (diff)
Fix ECDSA_SIG docs
They incorrectly said that i2d_ECDSA_SIG returns 0 on error. In fact it returns a negative value on error. We fix this by moving the i2d_ECDSA_SIG/d2i_ECDSA_SIG docs onto the same page as all the other d2i/i2d docs. Fixes #9517 Reviewed-by: Nicola Tuveri <nic.tuv@gmail.com> (Merged from https://github.com/openssl/openssl/pull/9533) (cherry picked from commit bbda79976b5c5095c5e6557311c86c623ba335f1)
Diffstat (limited to 'include')
-rw-r--r--include/openssl/ec.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/openssl/ec.h b/include/openssl/ec.h
index 0dec972c85..9d1d152b25 100644
--- a/include/openssl/ec.h
+++ b/include/openssl/ec.h
@@ -1138,7 +1138,8 @@ void ECDSA_SIG_free(ECDSA_SIG *sig);
* (*pp += length of the DER encoded signature)).
* \param sig pointer to the ECDSA_SIG object
* \param pp pointer to a unsigned char pointer for the output or NULL
- * \return the length of the DER encoded ECDSA_SIG object or 0
+ * \return the length of the DER encoded ECDSA_SIG object or a negative value
+ * on error
*/
int i2d_ECDSA_SIG(const ECDSA_SIG *sig, unsigned char **pp);