]> git.ipfire.org Git - thirdparty/openssl.git/commit
Update IMPL_*_SIGALG to not have to stringify parameter
authorNeil Horman <nhorman@openssl.org>
Wed, 7 May 2025 12:58:30 +0000 (08:58 -0400)
committerTodd Short <todd.short@me.com>
Thu, 8 May 2025 18:26:07 +0000 (14:26 -0400)
commita6d5af4fb52b09b8bf701b9b508e724557791a67
tree0cc88e8a5c80422aa8629a0329a8a623110bdf13
parent1afcc27f945272f29905c32ba725757470fb0e6e
Update IMPL_*_SIGALG to not have to stringify parameter

Noted while playing with some c-style tools that these macros got
mis-handled when doing style changes.  Specifically, the last parameter,
as it passed externally as a token, but stringified internal to the
associated macro, got handled as an arithmetic expression rather than a
string.

Given that the only thing this parameter is used for is as a string, cut
out the middle man and just pass it as a string in the first place

Reviewed-by: Saša Nedvědický <sashan@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
Reviewed-by: Todd Short <todd.short@me.com>
(Merged from https://github.com/openssl/openssl/pull/27579)
providers/implementations/signature/dsa_sig.c
providers/implementations/signature/ecdsa_sig.c
providers/implementations/signature/rsa_sig.c