summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2025-03-13 10:39:51 +0000
committertb <>2025-03-13 10:39:51 +0000
commit496f9bc849b86c6d78029441fca5894a030c1798 (patch)
treeb2d530cbfe38adad1251a55dc77a4368e7ef5495 /src
parenta8dfe0e93a8dd087c97360014c85b4a5b706ac43 (diff)
downloadopenbsd-496f9bc849b86c6d78029441fca5894a030c1798.tar.gz
openbsd-496f9bc849b86c6d78029441fca5894a030c1798.tar.bz2
openbsd-496f9bc849b86c6d78029441fca5894a030c1798.zip
pkey_ec_derive: fix call to ECDH_compute_key()
The last argument is a pointer to the KDF, so use NULL, not 0.
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/ec/ec_pmeth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/ec/ec_pmeth.c b/src/lib/libcrypto/ec/ec_pmeth.c
index e1a068d62d..85ac4822d1 100644
--- a/src/lib/libcrypto/ec/ec_pmeth.c
+++ b/src/lib/libcrypto/ec/ec_pmeth.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ec_pmeth.c,v 1.25 2025/02/18 06:31:10 tb Exp $ */ 1/* $OpenBSD: ec_pmeth.c,v 1.26 2025/03/13 10:39:51 tb Exp $ */
2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL 2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
3 * project 2006. 3 * project 2006.
4 */ 4 */
@@ -234,7 +234,7 @@ pkey_ec_derive(EVP_PKEY_CTX *ctx, unsigned char *key, size_t *keylen)
234 234
235 outlen = *keylen; 235 outlen = *keylen;
236 236
237 ret = ECDH_compute_key(key, outlen, pubkey, eckey, 0); 237 ret = ECDH_compute_key(key, outlen, pubkey, eckey, NULL);
238 if (ret <= 0) 238 if (ret <= 0)
239 return 0; 239 return 0;
240 240