diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2022-05-04 14:14:35 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2022-05-04 14:24:52 +0200 |
commit | fd8c49634a8327f6b70f3e421b23b9127f74aebe (patch) | |
tree | 773f7c022591f4e6fda4f5a6b808a91ac6070875 /scripts | |
parent | 2d7b49c1e7ee5ff5cd67be3ebf100d7b3c9ae293 (diff) | |
download | barebox-fd8c49634a8327f6b70f3e421b23b9127f74aebe.tar.gz barebox-fd8c49634a8327f6b70f3e421b23b9127f74aebe.tar.xz |
rsatoc: fix compiler warnings
Fixes:
scripts/rsatoc.c:189:5: warning: no previous prototype for ‘rsa_get_params’ [-Wmissing-prototypes]
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/rsatoc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/rsatoc.c b/scripts/rsatoc.c index f2d91b8e0d..722c5dba19 100644 --- a/scripts/rsatoc.c +++ b/scripts/rsatoc.c @@ -184,8 +184,8 @@ cleanup: /* * rsa_get_params(): - Get the important parameters of an RSA public key */ -int rsa_get_params(RSA *key, uint64_t *exponent, uint32_t *n0_invp, - BIGNUM **modulusp, BIGNUM **r_squaredp) +static int rsa_get_params(RSA *key, uint64_t *exponent, uint32_t *n0_invp, + BIGNUM **modulusp, BIGNUM **r_squaredp) { BIGNUM *big1, *big2, *big32, *big2_32; BIGNUM *n, *r, *r_squared, *tmp; @@ -359,7 +359,7 @@ static int print_bignum(BIGNUM *num, int num_bits) static int gen_key(const char *keyname, const char *path) { BIGNUM *modulus, *r_squared; - uint64_t exponent; + uint64_t exponent = 0; uint32_t n0_inv; int ret; int bits; |