summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortb <>2025-01-11 20:57:03 +0000
committertb <>2025-01-11 20:57:03 +0000
commitbed978106e5a26249556280f6db81a4b8114e947 (patch)
treeec69e358b81e7648f63fd3c5e79ae17514612223
parent3a15195f5d443757ac8eb30c0ef2229a374797e7 (diff)
downloadopenbsd-bed978106e5a26249556280f6db81a4b8114e947.tar.gz
openbsd-bed978106e5a26249556280f6db81a4b8114e947.tar.bz2
openbsd-bed978106e5a26249556280f6db81a4b8114e947.zip
ec_key_gen() is unused outside ec_key.c, so make it static
-rw-r--r--src/lib/libcrypto/ec/ec_key.c4
-rw-r--r--src/lib/libcrypto/ec/ec_local.h3
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 @@
1/* $OpenBSD: ec_key.c,v 1.49 2025/01/11 20:55:08 tb Exp $ */ 1/* $OpenBSD: ec_key.c,v 1.50 2025/01/11 20:57:03 tb Exp $ */
2/* 2/*
3 * Written by Nils Larsch for the OpenSSL project. 3 * Written by Nils Larsch for the OpenSSL project.
4 */ 4 */
@@ -235,7 +235,7 @@ EC_KEY_generate_key(EC_KEY *eckey)
235} 235}
236LCRYPTO_ALIAS(EC_KEY_generate_key); 236LCRYPTO_ALIAS(EC_KEY_generate_key);
237 237
238int 238static int
239ec_key_gen(EC_KEY *eckey) 239ec_key_gen(EC_KEY *eckey)
240{ 240{
241 BIGNUM *priv_key = NULL; 241 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 @@
1/* $OpenBSD: ec_local.h,v 1.61 2025/01/11 20:55:08 tb Exp $ */ 1/* $OpenBSD: ec_local.h,v 1.62 2025/01/11 20:57:03 tb Exp $ */
2/* 2/*
3 * Originally written by Bodo Moeller for the OpenSSL project. 3 * Originally written by Bodo Moeller for the OpenSSL project.
4 */ 4 */
@@ -239,7 +239,6 @@ struct ec_key_st {
239} /* EC_KEY */; 239} /* EC_KEY */;
240 240
241int eckey_compute_pubkey(EC_KEY *eckey); 241int eckey_compute_pubkey(EC_KEY *eckey);
242int ec_key_gen(EC_KEY *eckey);
243int ecdh_compute_key(unsigned char **out, size_t *out_len, 242int ecdh_compute_key(unsigned char **out, size_t *out_len,
244 const EC_POINT *pub_key, const EC_KEY *ecdh); 243 const EC_POINT *pub_key, const EC_KEY *ecdh);
245int ecdsa_verify(int type, const unsigned char *dgst, int dgst_len, 244int ecdsa_verify(int type, const unsigned char *dgst, int dgst_len,