aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/crypto/ecdh.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/crypto/ecdh.c b/lib/crypto/ecdh.c
index 31d5fd9..ab5d286 100644
--- a/lib/crypto/ecdh.c
+++ b/lib/crypto/ecdh.c
@@ -202,6 +202,7 @@ gen_session_key(const unsigned char *priv, const unsigned char *peer_key,
}
/* Derive the session key */
+ tmp = KEY_SIZE;
if (EVP_PKEY_derive(ctx, session_key, &tmp) <= 0) {
printf("Failed to derive session key\n");
EVP_PKEY_CTX_free(ctx);