Skip to content

Commit 384d7c0

Browse files
author
tb
committed
Make header guards of internal headers consistent
Not all of them, only those that didn't leak into a public header... Yes.
1 parent 19e8891 commit 384d7c0

File tree

16 files changed

+55
-56
lines changed

16 files changed

+55
-56
lines changed

src/lib/libcrypto/aes/aes_local.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $OpenBSD: aes_local.h,v 1.1 2022/11/26 16:08:50 tb Exp $ */
1+
/* $OpenBSD: aes_local.h,v 1.2 2022/11/26 17:23:17 tb Exp $ */
22
/* ====================================================================
33
* Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved.
44
*
@@ -49,8 +49,8 @@
4949
*
5050
*/
5151

52-
#ifndef HEADER_AES_LOCL_H
53-
#define HEADER_AES_LOCL_H
52+
#ifndef HEADER_AES_LOCAL_H
53+
#define HEADER_AES_LOCAL_H
5454

5555
#include <openssl/opensslconf.h>
5656

@@ -80,4 +80,4 @@ typedef unsigned char u8;
8080

8181
__END_HIDDEN_DECLS
8282

83-
#endif /* !HEADER_AES_LOCL_H */
83+
#endif /* !HEADER_AES_LOCAL_H */

src/lib/libcrypto/bn/bn_local.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $OpenBSD: bn_local.h,v 1.1 2022/11/26 16:08:51 tb Exp $ */
1+
/* $OpenBSD: bn_local.h,v 1.2 2022/11/26 17:23:17 tb Exp $ */
22
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
33
* All rights reserved.
44
*
@@ -109,8 +109,8 @@
109109
*
110110
*/
111111

112-
#ifndef HEADER_BN_LCL_H
113-
#define HEADER_BN_LCL_H
112+
#ifndef HEADER_BN_LOCAL_H
113+
#define HEADER_BN_LOCAL_H
114114

115115
#include <openssl/opensslconf.h>
116116

@@ -564,4 +564,4 @@ int bn_is_perfect_square(int *out_perfect, const BIGNUM *n, BN_CTX *ctx);
564564
int bn_is_prime_bpsw(int *is_prime, const BIGNUM *n, BN_CTX *in_ctx);
565565

566566
__END_HIDDEN_DECLS
567-
#endif
567+
#endif /* !HEADER_BN_LOCAL_H */

src/lib/libcrypto/camellia/cmll_local.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $OpenBSD: cmll_local.h,v 1.1 2022/11/26 16:08:51 tb Exp $ */
1+
/* $OpenBSD: cmll_local.h,v 1.2 2022/11/26 17:23:17 tb Exp $ */
22
/* ====================================================================
33
* Copyright 2006 NTT (Nippon Telegraph and Telephone Corporation) .
44
* ALL RIGHTS RESERVED.
@@ -65,8 +65,8 @@
6565
* ====================================================================
6666
*/
6767

68-
#ifndef HEADER_CAMELLIA_LOCL_H
69-
#define HEADER_CAMELLIA_LOCL_H
68+
#ifndef HEADER_CAMELLIA_LOCAL_H
69+
#define HEADER_CAMELLIA_LOCAL_H
7070

7171
__BEGIN_HIDDEN_DECLS
7272

@@ -86,4 +86,4 @@ void Camellia_DecryptBlock(int keyBitLength, const u8 ciphertext[],
8686

8787
__END_HIDDEN_DECLS
8888

89-
#endif /* #ifndef HEADER_CAMELLIA_LOCL_H */
89+
#endif /* !HEADER_CAMELLIA_LOCAL_H */

src/lib/libcrypto/cms/cms_local.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $OpenBSD: cms_local.h,v 1.1 2022/11/26 16:08:51 tb Exp $ */
1+
/* $OpenBSD: cms_local.h,v 1.2 2022/11/26 17:23:17 tb Exp $ */
22
/*
33
* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
44
* project.
@@ -52,8 +52,8 @@
5252
* ====================================================================
5353
*/
5454

55-
#ifndef HEADER_CMS_LCL_H
56-
#define HEADER_CMS_LCL_H
55+
#ifndef HEADER_CMS_LOCAL_H
56+
#define HEADER_CMS_LOCAL_H
5757

5858
#include <openssl/x509.h>
5959

@@ -481,4 +481,4 @@ extern const ASN1_ITEM CMS_RevocationInfoChoice_it;
481481
extern const ASN1_ITEM CMS_SignedData_it;
482482
extern const ASN1_ITEM CMS_CompressedData_it;
483483

484-
#endif
484+
#endif /* !HEADER_CMS_LOCAL_H */

src/lib/libcrypto/constant_time.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@
4444
* [including the GNU Public Licence.]
4545
*/
4646

47-
#ifndef HEADER_CONSTANT_TIME_LOCL_H
48-
# define HEADER_CONSTANT_TIME_LOCL_H
47+
#ifndef HEADER_CONSTANT_TIME_H
48+
#define HEADER_CONSTANT_TIME_H
4949

5050
__BEGIN_HIDDEN_DECLS
5151

@@ -204,4 +204,4 @@ void err_clear_last_constant_time(int clear);
204204

205205
__END_HIDDEN_DECLS
206206

207-
#endif /* HEADER_CONSTANT_TIME_LOCL_H */
207+
#endif /* !HEADER_CONSTANT_TIME_H */

src/lib/libcrypto/ecdh/ech_local.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $OpenBSD: ech_local.h,v 1.1 2022/11/26 16:08:52 tb Exp $ */
1+
/* $OpenBSD: ech_local.h,v 1.2 2022/11/26 17:23:17 tb Exp $ */
22
/* ====================================================================
33
* Copyright (c) 2000-2005 The OpenSSL Project. All rights reserved.
44
*
@@ -53,8 +53,8 @@
5353
*
5454
*/
5555

56-
#ifndef HEADER_ECH_LOCL_H
57-
#define HEADER_ECH_LOCL_H
56+
#ifndef HEADER_ECH_LOCAL_H
57+
#define HEADER_ECH_LOCAL_H
5858

5959
#include <openssl/ecdh.h>
6060

@@ -96,4 +96,4 @@ int ecdh_KDF_X9_63(unsigned char *out, size_t outlen, const unsigned char *Z,
9696

9797
__END_HIDDEN_DECLS
9898

99-
#endif /* HEADER_ECH_LOCL_H */
99+
#endif /* !HEADER_ECH_LOCAL_H */

src/lib/libcrypto/ecdsa/ecs_local.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $OpenBSD: ecs_local.h,v 1.1 2022/11/26 16:08:52 tb Exp $ */
1+
/* $OpenBSD: ecs_local.h,v 1.2 2022/11/26 17:23:17 tb Exp $ */
22
/*
33
* Written by Nils Larsch for the OpenSSL project
44
*/
@@ -56,8 +56,8 @@
5656
*
5757
*/
5858

59-
#ifndef HEADER_ECS_LOCL_H
60-
#define HEADER_ECS_LOCL_H
59+
#ifndef HEADER_ECS_LOCAL_H
60+
#define HEADER_ECS_LOCAL_H
6161

6262
#include <openssl/ecdsa.h>
6363

@@ -96,4 +96,4 @@ ECDSA_SIG *ossl_ecdsa_sign_sig(const unsigned char *dgst, int dgst_len,
9696

9797
__END_HIDDEN_DECLS
9898

99-
#endif /* HEADER_ECS_LOCL_H */
99+
#endif /* !HEADER_ECS_LOCAL_H */

src/lib/libcrypto/evp/evp_local.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $OpenBSD: evp_local.h,v 1.1 2022/11/26 16:08:52 tb Exp $ */
1+
/* $OpenBSD: evp_local.h,v 1.2 2022/11/26 17:23:17 tb Exp $ */
22
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
33
* project 2000.
44
*/
@@ -56,8 +56,8 @@
5656
*
5757
*/
5858

59-
#ifndef HEADER_EVP_LOCL_H
60-
#define HEADER_EVP_LOCL_H
59+
#ifndef HEADER_EVP_LOCAL_H
60+
#define HEADER_EVP_LOCAL_H
6161

6262
__BEGIN_HIDDEN_DECLS
6363

@@ -321,4 +321,4 @@ int EVP_PKEY_CTX_md(EVP_PKEY_CTX *ctx, int optype, int cmd, const char *md_name)
321321

322322
__END_HIDDEN_DECLS
323323

324-
#endif /* !HEADER_EVP_LOCL_H */
324+
#endif /* !HEADER_EVP_LOCAL_H */

src/lib/libcrypto/gost/gost_local.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $OpenBSD: gost_local.h,v 1.1 2022/11/26 16:08:53 tb Exp $ */
1+
/* $OpenBSD: gost_local.h,v 1.2 2022/11/26 17:23:18 tb Exp $ */
22
/*
33
* Copyright (c) 2014 Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
44
* Copyright (c) 2005-2006 Cryptocom LTD
@@ -49,8 +49,8 @@
4949
* ====================================================================
5050
*/
5151

52-
#ifndef HEADER_GOST_LOCL_H
53-
#define HEADER_GOST_LOCL_H
52+
#ifndef HEADER_GOST_LOCAL_H
53+
#define HEADER_GOST_LOCAL_H
5454

5555
#include <openssl/ec.h>
5656
#include <openssl/ecdsa.h>
@@ -114,4 +114,4 @@ extern int GostR3410_512_param_id(const char *value);
114114

115115
__END_HIDDEN_DECLS
116116

117-
#endif
117+
#endif /* !HEADER_GOST_LOCAL_H */

src/lib/libcrypto/pkcs12/pkcs12_local.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $OpenBSD: pkcs12_local.h,v 1.2 2022/09/11 17:30:13 tb Exp $ */
1+
/* $OpenBSD: pkcs12_local.h,v 1.3 2022/11/26 17:23:18 tb Exp $ */
22
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
33
* project 1999.
44
*/
@@ -98,4 +98,4 @@ struct pkcs12_bag_st {
9898

9999
__END_HIDDEN_DECLS
100100

101-
#endif /* HEADER_PKCS12_LOCAL_H */
101+
#endif /* !HEADER_PKCS12_LOCAL_H */

0 commit comments

Comments
 (0)