change prototype of the ecdh KDF: make input parameter const and the outlen argument...
[openssl.git] / crypto / ecdh / ech_key.c
index 7d1bb32ae0623cba3640c4fb6a8fdc7119667b5c..ea23a0d261bf76bbff9d74188bf9d2d91ffd44ae 100644 (file)
@@ -72,8 +72,9 @@
 #include <openssl/engine.h>
 #endif
 
-int ECDH_compute_key(void *out, size_t outlen, const EC_POINT *pub_key, EC_KEY *eckey,
-                     void *(*KDF)(void *in, size_t inlen, void *out, size_t outlen))
+int ECDH_compute_key(void *out, size_t outlen, const EC_POINT *pub_key,
+       EC_KEY *eckey,
+       void *(*KDF)(const void *in, size_t inlen, void *out, size_t *outlen))
 {
        ECDH_DATA *ecdh = ecdh_check(eckey);
        if (ecdh == NULL)