From bed978106e5a26249556280f6db81a4b8114e947 Mon Sep 17 00:00:00 2001 From: tb <> Date: Sat, 11 Jan 2025 20:57:03 +0000 Subject: ec_key_gen() is unused outside ec_key.c, so make it static --- src/lib/libcrypto/ec/ec_key.c | 4 ++-- src/lib/libcrypto/ec/ec_local.h | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/lib/libcrypto/ec/ec_key.c b/src/lib/libcrypto/ec/ec_key.c index 09f89d4e57..c3cbf7f927 100644 --- a/src/lib/libcrypto/ec/ec_key.c +++ b/src/lib/libcrypto/ec/ec_key.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ec_key.c,v 1.49 2025/01/11 20:55:08 tb Exp $ */ +/* $OpenBSD: ec_key.c,v 1.50 2025/01/11 20:57:03 tb Exp $ */ /* * Written by Nils Larsch for the OpenSSL project. */ @@ -235,7 +235,7 @@ EC_KEY_generate_key(EC_KEY *eckey) } LCRYPTO_ALIAS(EC_KEY_generate_key); -int +static int ec_key_gen(EC_KEY *eckey) { BIGNUM *priv_key = NULL; diff --git a/src/lib/libcrypto/ec/ec_local.h b/src/lib/libcrypto/ec/ec_local.h index 363c723f66..afa8b0307f 100644 --- a/src/lib/libcrypto/ec/ec_local.h +++ b/src/lib/libcrypto/ec/ec_local.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ec_local.h,v 1.61 2025/01/11 20:55:08 tb Exp $ */ +/* $OpenBSD: ec_local.h,v 1.62 2025/01/11 20:57:03 tb Exp $ */ /* * Originally written by Bodo Moeller for the OpenSSL project. */ @@ -239,7 +239,6 @@ struct ec_key_st { } /* EC_KEY */; int eckey_compute_pubkey(EC_KEY *eckey); -int ec_key_gen(EC_KEY *eckey); int ecdh_compute_key(unsigned char **out, size_t *out_len, const EC_POINT *pub_key, const EC_KEY *ecdh); int ecdsa_verify(int type, const unsigned char *dgst, int dgst_len, -- cgit v1.2.3-55-g6feb