From: Remi Tricot-Le Breton Date: Mon, 30 Jun 2025 14:56:25 +0000 (+0200) Subject: MINOR: jwt: Remove unused parameter in convert_ecdsa_sig X-Git-Tag: v3.3-dev3~65 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6e9f886c4dc0ccdb6f5fbddb450a0af4ec901004;p=thirdparty%2Fhaproxy.git MINOR: jwt: Remove unused parameter in convert_ecdsa_sig The pubkey parameter in convert_ecdsa_sig was not actually used. --- diff --git a/src/jwt.c b/src/jwt.c index 1c8d7c051..17d32cd16 100644 --- a/src/jwt.c +++ b/src/jwt.c @@ -220,7 +220,7 @@ jwt_jwsverify_hmac(const struct jwt_ctx *ctx, const struct buffer *decoded_signa * verification functions. * Returns 0 in case of success. */ -static int convert_ecdsa_sig(const struct jwt_ctx *ctx, EVP_PKEY *pubkey, struct buffer *signature) +static int convert_ecdsa_sig(const struct jwt_ctx *ctx, struct buffer *signature) { int retval = 0; ECDSA_SIG *ecdsa_sig = NULL; @@ -345,7 +345,7 @@ jwt_jwsverify_rsa_ecdsa(const struct jwt_ctx *ctx, struct buffer *decoded_signat * work with OpenSSL. */ if (is_ecdsa) { - int conv_retval = convert_ecdsa_sig(ctx, entry->pubkey, decoded_signature); + int conv_retval = convert_ecdsa_sig(ctx, decoded_signature); if (conv_retval != 0) { retval = conv_retval; goto end;