]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: jwt: Remove unused parameter in convert_ecdsa_sig
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Mon, 30 Jun 2025 14:56:25 +0000 (16:56 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Mon, 30 Jun 2025 15:59:55 +0000 (17:59 +0200)
The pubkey parameter in convert_ecdsa_sig was not actually used.

src/jwt.c

index 1c8d7c0510aeb1bc92f875205d47360b592c5c2e..17d32cd16e615579da7f64221c62ded193928790 100644 (file)
--- 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;