hide the definition of ECDSA_METHOD and ECDSA_DATA (and mutatis mutandis
[openssl.git] / crypto / ecdh / ech_key.c
index 7d1bb32ae0623cba3640c4fb6a8fdc7119667b5c..f44da9298b5e5655a103f9b1646fcf969b76640f 100644 (file)
  *
  */
 
-#include "ecdh.h"
+#include "ech_locl.h"
 #ifndef OPENSSL_NO_ENGINE
 #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)