]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Guard charmap.h
authorBob Beck <beck@openssl.org>
Tue, 28 Apr 2026 01:38:41 +0000 (19:38 -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:02 2026
(Merged from https://github.com/openssl/openssl/pull/31001)

crypto/asn1/charmap.h
crypto/asn1/charmap.pl

index ac1eb076cc2603c490cff9c90a3460e0f091d71b..ca99f05b3256801847667692af45ec9f5de80a22 100644 (file)
@@ -2,7 +2,7 @@
  * WARNING: do not edit!
  * Generated by crypto/asn1/charmap.pl
  *
- * Copyright 2000-2021 The OpenSSL Project Authors. All Rights Reserved.
+ * Copyright 2000-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
  * https://www.openssl.org/source/license.html
  */
 
+#if !defined(OSSL_LIBCRYPTO_ASN1_CHARMAP_H)
+#define OSSL_LIBCRYPTO_ASN1_CHARMAP_H
+
+/* clang-format off */
 #define CHARTYPE_HOST_ANY 4096
 #define CHARTYPE_HOST_DOT 8192
 #define CHARTYPE_HOST_HYPHEN 16384
@@ -32,3 +36,6 @@ static const unsigned short char_type[] = {
     4112, 4112, 4112, 4112, 4112, 4112, 4112, 4112, 4112, 4112, 4112, 4112,
     4112, 4112, 4112,    0,    0,    0,    0,    2
 };
+/* clang-format on */
+
+#endif /* !defined(OSSL_LIBCRYPTO_ASN1_CHARMAP_H) */
index 78053dee15fb2437286b72f6797d298d157505e7..53add528254ab20a2380715439975545a3b2dbd4 100644 (file)
@@ -101,6 +101,10 @@ print <<EOF;
  * https://www.openssl.org/source/license.html
  */
 
+#if !defined(OSSL_LIBCRYPTO_ASN1_CHARMAP_H)
+#define OSSL_LIBCRYPTO_ASN1_CHARMAP_H
+
+/* clang-format off */
 #define CHARTYPE_HOST_ANY $HOST_ANY
 #define CHARTYPE_HOST_DOT $HOST_DOT
 #define CHARTYPE_HOST_HYPHEN $HOST_HYPHEN
@@ -120,4 +124,7 @@ for($i = 0; $i < 128; $i++) {
        print(",") if ($i != 127);
 }
 print("\n};\n");
+print "/* clang-format on */\n";
+print "\n#endif /* !defined(OSSL_LIBCRYPTO_ASN1_CHARMAP_H) */\n";
+