Align header guard style in the remaining headers.
Change-Id: I811884dacf14fb6da4dd2300f27c8801145fd3ae
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/56645
Commit-Queue: David Benjamin <davidben@google.com>
Reviewed-by: Bob Beck <bbe@google.com>
diff --git a/include/openssl/asn1.h b/include/openssl/asn1.h
index 7866deb..0370a3e 100644
--- a/include/openssl/asn1.h
+++ b/include/openssl/asn1.h
@@ -55,8 +55,8 @@
* [including the GNU Public Licence.]
*/
-#ifndef HEADER_ASN1_H
-#define HEADER_ASN1_H
+#ifndef OPENSSL_HEADER_ASN1_H
+#define OPENSSL_HEADER_ASN1_H
#include <openssl/base.h>
@@ -2108,4 +2108,4 @@
#define ASN1_R_WRONG_INTEGER_TYPE 195
#define ASN1_R_INVALID_INTEGER 196
-#endif
+#endif // OPENSSL_HEADER_ASN1_H
diff --git a/include/openssl/asn1t.h b/include/openssl/asn1t.h
index f3c4b7f..7547b60 100644
--- a/include/openssl/asn1t.h
+++ b/include/openssl/asn1t.h
@@ -54,13 +54,13 @@
* Hudson (tjh@cryptsoft.com).
*
*/
-#ifndef HEADER_ASN1T_H
-#define HEADER_ASN1T_H
+#ifndef OPENSSL_HEADER_ASN1T_H
+#define OPENSSL_HEADER_ASN1T_H
#include <openssl/base.h>
#include <openssl/asn1.h>
-#ifdef __cplusplus
+#if defined(__cplusplus)
extern "C" {
#endif
@@ -658,7 +658,9 @@
DEFINE_STACK_OF(ASN1_VALUE)
-#ifdef __cplusplus
-}
+
+#if defined(__cplusplus)
+} // extern "C"
#endif
-#endif
+
+#endif // OPENSSL_HEADER_ASN1T_H
diff --git a/include/openssl/x509.h b/include/openssl/x509.h
index ec65cc5..e3ba8e0 100644
--- a/include/openssl/x509.h
+++ b/include/openssl/x509.h
@@ -60,8 +60,8 @@
* SUN MICROSYSTEMS, INC., and contributed to the OpenSSL project.
*/
-#ifndef HEADER_X509_H
-#define HEADER_X509_H
+#ifndef OPENSSL_HEADER_X509_H
+#define OPENSSL_HEADER_X509_H
#include <openssl/asn1.h>
#include <openssl/base.h>
@@ -2923,4 +2923,4 @@
#define X509_R_NO_CRL_FOUND 143
#define X509_R_INVALID_POLICY_EXTENSION 144
-#endif
+#endif // OPENSSL_HEADER_X509_H
diff --git a/include/openssl/x509v3.h b/include/openssl/x509v3.h
index 37e1a22..f305dae 100644
--- a/include/openssl/x509v3.h
+++ b/include/openssl/x509v3.h
@@ -52,8 +52,8 @@
* (eay@cryptsoft.com). This product includes software written by Tim
* Hudson (tjh@cryptsoft.com). */
-#ifndef HEADER_X509V3_H
-#define HEADER_X509V3_H
+#ifndef OPENSSL_HEADER_X509V3_H
+#define OPENSSL_HEADER_X509V3_H
#include <openssl/bio.h>
#include <openssl/conf.h>
@@ -1027,4 +1027,4 @@
#define X509V3_R_INVALID_VALUE 163
#define X509V3_R_TRAILING_DATA_IN_EXTENSION 164
-#endif
+#endif // OPENSSL_HEADER_X509V3_H