]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Guard output of keysets.pl
authorBob Beck <beck@openssl.org>
Tue, 28 Apr 2026 01:29:34 +0000 (19:29 -0600)
committerNorbert Pocs <norbertp@openssl.org>
Wed, 6 May 2026 11:35:41 +0000 (13:35 +0200)
Reviewed-by: Tomas Mraz <tomas@openssl.foundation>
Reviewed-by: Nikola Pajkovsky <nikolap@openssl.org>
Reviewed-by: Norbert Pocs <norbertp@openssl.org>
MergeDate: Wed May  6 11:36:01 2026
(Merged from https://github.com/openssl/openssl/pull/31001)

crypto/conf/conf_def.h
crypto/conf/keysets.pl

index 1f66a58e092318a6fe5f061a0b3c450650a5b5a1..2fdc9d7d996edcbbfd68f394c9ff578c8ee7a71b 100644 (file)
@@ -2,13 +2,16 @@
  * WARNING: do not edit!
  * Generated by crypto/conf/keysets.pl
  *
- * Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved.
+ * Copyright 1995-2026 The OpenSSL Project Authors. All Rights Reserved.
  * Licensed under the Apache License 2.0 (the "License").  You may not use
  * this file except in compliance with the License.  You can obtain a copy
  * in the file LICENSE in the source distribution or at
  * https://www.openssl.org/source/license.html
  */
+#if !defined(OSSL_LIBCRYPTO_CONF_CONF_DEF_H)
+#define OSSL_LIBCRYPTO_CONF_CONF_DEF_H
 
+/* clang-format off */
 #define CONF_NUMBER       1
 #define CONF_UPPER        2
 #define CONF_LOWER        4
@@ -78,3 +81,6 @@ static const unsigned short CONF_type_win32[128] = {
     0x0004, 0x0004, 0x0004, 0x0000, 0x0200, 0x0000, 0x0200, 0x0000,
 };
 #endif
+/* clang-format on */
+
+#endif /* !defined(OSSL_LIBCRYPTO_CONF_CONF_DEF_H) */
index 7e83d800501bfae3064d52076dfa441004e1422c..cb0ddc300a9c903c9a20600891f29523fa949dc2 100644 (file)
@@ -73,7 +73,10 @@ print <<"EOF";
  * in the file LICENSE in the source distribution or at
  * https://www.openssl.org/source/license.html
  */
+#if !defined(OSSL_LIBCRYPTO_CONF_CONF_DEF_H)
+#define OSSL_LIBCRYPTO_CONF_CONF_DEF_H
 
+/* clang-format off */
 #define CONF_NUMBER       $NUMBER
 #define CONF_UPPER        $UPPER
 #define CONF_LOWER        $LOWER
@@ -123,3 +126,5 @@ for ($i = 0; $i < 128; $i++) {
 }
 print "\n};\n";
 print "#endif\n";
+print "/* clang-format on */\n";
+print "\n#endif /* !defined(OSSL_LIBCRYPTO_CONF_CONF_DEF_H) */\n";