diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2015-12-13 00:11:42 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2015-12-16 14:17:53 +0000 |
commit | 2c61a5eccad5085cab916c0959cb4c2fec16f9e5 (patch) | |
tree | ae8e5ab9213a1fea1a3781ec92c463a00409fe16 /include | |
parent | c66ce5eb23f7611bd2822650d6ffeacbe0671072 (diff) | |
download | openssl-2c61a5eccad5085cab916c0959cb4c2fec16f9e5.tar.gz |
Constify EC_KEY in ECDH_compute_key.
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/openssl/ec.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/openssl/ec.h b/include/openssl/ec.h index 33f1c7319e..1dc2db18cc 100644 --- a/include/openssl/ec.h +++ b/include/openssl/ec.h @@ -1031,8 +1031,9 @@ int ECDH_KDF_X9_62(unsigned char *out, size_t outlen, const EVP_MD *md); int ECDH_compute_key(void *out, size_t outlen, const EC_POINT *pub_key, - EC_KEY *ecdh, void *(*KDF) (const void *in, size_t inlen, - void *out, size_t *outlen)); + const EC_KEY *ecdh, + void *(*KDF) (const void *in, size_t inlen, + void *out, size_t *outlen)); typedef struct ECDSA_SIG_st ECDSA_SIG; @@ -1188,7 +1189,7 @@ void EC_KEY_METHOD_set_compute_key(EC_KEY_METHOD *meth, int (*ckey)(void *out, size_t outlen, const EC_POINT *pub_key, - EC_KEY *ecdh, + const EC_KEY *ecdh, void *(*KDF) (const void *in, size_t inlen, void *out, @@ -1236,7 +1237,7 @@ void EC_KEY_METHOD_get_compute_key(EC_KEY_METHOD *meth, int (**pck)(void *out, size_t outlen, const EC_POINT *pub_key, - EC_KEY *ecdh, + const EC_KEY *ecdh, void *(*KDF) (const void *in, size_t inlen, void *out, |