summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorFdaSilvaYY <fdasilvayy@gmail.com>2016-06-19 18:54:50 +0200
committerRich Salz <rsalz@openssl.org>2016-07-25 08:20:00 -0400
commit25d57dc71b7b2d024588eb3831a73cb32fc069bf (patch)
tree407da964f3801adb1e53cfe8eb5127363c36e0b2 /include
parentc17dd597ac5ac687b4cc7b585d7f8fb0cf987a20 (diff)
Constify EC_KEY_*_oct2priv() input buffer
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/1300)
Diffstat (limited to 'include')
-rw-r--r--include/openssl/ec.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/openssl/ec.h b/include/openssl/ec.h
index ebeb3e9a4b..a9ce2088d5 100644
--- a/include/openssl/ec.h
+++ b/include/openssl/ec.h
@@ -906,7 +906,7 @@ int EC_KEY_oct2key(EC_KEY *key, const unsigned char *buf, size_t len,
* \return 1 on success and 0 if an error occurred
*/
-int EC_KEY_oct2priv(EC_KEY *key, unsigned char *buf, size_t len);
+int EC_KEY_oct2priv(EC_KEY *key, const unsigned char *buf, size_t len);
/** Encodes a EC_KEY private key to an octet string
* \param key key to encode