]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
params: sort structure fields for repeatability
authorPauli <ppzgs1@gmail.com>
Wed, 18 Jun 2025 01:33:31 +0000 (11:33 +1000)
committerPauli <ppzgs1@gmail.com>
Thu, 19 Jun 2025 22:39:29 +0000 (08:39 +1000)
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/27847)

util/perl/OpenSSL/paramnames.pm

index e6bff51fa4db1ea5034ef32071a5af516285e4c7..a2b44cd7e46f1dd0e8ab9c18128b4ba5c7d9e7f7 100644 (file)
@@ -782,7 +782,7 @@ sub output_param_decoder {
     # Output param pointer structure
     printf "#ifndef %s_st\n", $decoder_name_base;
     printf "struct %s_st {\n", $decoder_name_base;
-    foreach my $pident (values %prms) {
+    foreach my $pident (sort values %prms) {
         printf "    OSSL_PARAM *%s;\n", $pident;
     }
     print "};\n#endif\n\n";