]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
providers/implementation: Generate header includes for .inc files
authorNorbert Pocs <norbertp@openssl.org>
Thu, 7 May 2026 14:00:10 +0000 (16:00 +0200)
committerNorbert Pocs <norbertp@openssl.org>
Mon, 18 May 2026 07:03:29 +0000 (09:03 +0200)
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)

util/perl/OpenSSL/paramnames.pm

index 69a57f11a314d2beffe0c9681c082006e4e8582e..328189c7b3abec8cab236aa5e6531d94cad501eb 100644 (file)
@@ -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++) {