Commit c662dfbc63 for openssl.org

commit c662dfbc63c5b7685c9fef6882f1fa9e501a635c
Author: Norbert Pocs <norbertp@openssl.org>
Date:   Thu May 7 16:00:10 2026 +0200

    providers/implementation: Generate header includes for .inc files

    Make these headers self contained even as they are .inc files. This
    approach makes it a lot easier to achieve self contained files and
    protects from include reorders. (where the .inc can get above the
    dependent headers)

    Signed-off-by: Norbert Pocs <norbertp@openssl.org>

    Reviewed-by: Saša NedvÄ›dický <sashan@openssl.org>
    Reviewed-by: Nikola Pajkovsky <nikolap@openssl.org>
    MergeDate: Mon May 18 07:03:48 2026
    (Merged from https://github.com/openssl/openssl/pull/31153)

diff --git a/util/perl/OpenSSL/paramnames.pm b/util/perl/OpenSSL/paramnames.pm
index 69a57f11a3..328189c7b3 100644
--- a/util/perl/OpenSSL/paramnames.pm
+++ b/util/perl/OpenSSL/paramnames.pm
@@ -865,7 +865,13 @@ sub output_param_decoder {
     my %ifdefs = ();

     print "/* Machine generated by util/perl/OpenSSL/paramnames.pm */\n";
-    # Output ettable param array
+    # IWYU
+    print "#include <string.h>\n";
+    print "#include <openssl/params.h>\n";
+    print "#include \"internal/common.h\"\n";
+    print "#include \"prov/proverr.h\"\n";
+    print "\n";
+    # Output gettable param array
     printf "#ifndef %s_list\n", $decoder_name_base;
     printf "static const OSSL_PARAM %s_list[] = {\n", $decoder_name_base;
     for (my $i = 0; $i <= $#params; $i++) {