diff options
| author | tb <> | 2025-01-11 20:57:03 +0000 |
|---|---|---|
| committer | tb <> | 2025-01-11 20:57:03 +0000 |
| commit | 5b447c48da016a6d20470f6a1f1b223541c3738f (patch) | |
| tree | ec69e358b81e7648f63fd3c5e79ae17514612223 /src | |
| parent | c13433b3ce1073b770e3b23c4779ae36f71c1442 (diff) | |
| download | openbsd-5b447c48da016a6d20470f6a1f1b223541c3738f.tar.gz openbsd-5b447c48da016a6d20470f6a1f1b223541c3738f.tar.bz2 openbsd-5b447c48da016a6d20470f6a1f1b223541c3738f.zip | |
ec_key_gen() is unused outside ec_key.c, so make it static
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libcrypto/ec/ec_key.c | 4 | ||||
| -rw-r--r-- | 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 @@ | |||
| 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 | } |
| 236 | LCRYPTO_ALIAS(EC_KEY_generate_key); | 236 | LCRYPTO_ALIAS(EC_KEY_generate_key); |
| 237 | 237 | ||
| 238 | int | 238 | static int |
| 239 | ec_key_gen(EC_KEY *eckey) | 239 | ec_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 | ||
| 241 | int eckey_compute_pubkey(EC_KEY *eckey); | 241 | int eckey_compute_pubkey(EC_KEY *eckey); |
| 242 | int ec_key_gen(EC_KEY *eckey); | ||
| 243 | int ecdh_compute_key(unsigned char **out, size_t *out_len, | 242 | int 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); |
| 245 | int ecdsa_verify(int type, const unsigned char *dgst, int dgst_len, | 244 | int ecdsa_verify(int type, const unsigned char *dgst, int dgst_len, |
