make update
[openssl.git] / crypto / ecdh / ech_key.c
index 923a7e9dd92d43a33a941a6de2e1922d9cb72394..52a4649dc6910c7505899bb44c83ad6ed5e712a1 100644 (file)
  *
  */
 
-#include "ecdh.h"
+#define OPENSSL_FIPSAPI
+
+#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)