summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2022-11-26 17:23:19 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2022-11-26 17:23:19 +0000
commit119cc0d6c4ee73d5c4f5b7d45fe9ac7e597647e6 (patch)
tree25590c0547b1533f2874e950691e7a5681d03a73 /lib
parent3507f4dbea85f0d3d39f2bd6db10b4a4051a6277 (diff)
Make header guards of internal headers consistent
Not all of them, only those that didn't leak into a public header... Yes.
Diffstat (limited to 'lib')
-rw-r--r--lib/libcrypto/aes/aes_local.h8
-rw-r--r--lib/libcrypto/bn/bn_local.h8
-rw-r--r--lib/libcrypto/camellia/cmll_local.h8
-rw-r--r--lib/libcrypto/cms/cms_local.h8
-rw-r--r--lib/libcrypto/constant_time.h6
-rw-r--r--lib/libcrypto/ecdh/ech_local.h8
-rw-r--r--lib/libcrypto/ecdsa/ecs_local.h8
-rw-r--r--lib/libcrypto/evp/evp_local.h8
-rw-r--r--lib/libcrypto/gost/gost_local.h8
-rw-r--r--lib/libcrypto/pkcs12/pkcs12_local.h4
-rw-r--r--lib/libcrypto/sm2/sm2_local.h9
-rw-r--r--lib/libcrypto/ts/ts_local.h4
-rw-r--r--lib/libcrypto/ui/ui_local.h8
-rw-r--r--lib/libcrypto/x509/x509_local.h8
-rw-r--r--lib/libssl/dtls_local.h4
-rw-r--r--lib/libssl/ssl_local.h4
16 files changed, 55 insertions, 56 deletions
diff --git a/lib/libcrypto/aes/aes_local.h b/lib/libcrypto/aes/aes_local.h
index 4c984e0de64..ef74e713192 100644
--- a/lib/libcrypto/aes/aes_local.h
+++ b/lib/libcrypto/aes/aes_local.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: aes_local.h,v 1.1 2022/11/26 16:08:50 tb Exp $ */
+/* $OpenBSD: aes_local.h,v 1.2 2022/11/26 17:23:17 tb Exp $ */
/* ====================================================================
* Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved.
*
@@ -49,8 +49,8 @@
*
*/
-#ifndef HEADER_AES_LOCL_H
-#define HEADER_AES_LOCL_H
+#ifndef HEADER_AES_LOCAL_H
+#define HEADER_AES_LOCAL_H
#include <openssl/opensslconf.h>
@@ -80,4 +80,4 @@ typedef unsigned char u8;
__END_HIDDEN_DECLS
-#endif /* !HEADER_AES_LOCL_H */
+#endif /* !HEADER_AES_LOCAL_H */
diff --git a/lib/libcrypto/bn/bn_local.h b/lib/libcrypto/bn/bn_local.h
index 73d1f0a215e..7bddcb21b92 100644
--- a/lib/libcrypto/bn/bn_local.h
+++ b/lib/libcrypto/bn/bn_local.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: bn_local.h,v 1.1 2022/11/26 16:08:51 tb Exp $ */
+/* $OpenBSD: bn_local.h,v 1.2 2022/11/26 17:23:17 tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -109,8 +109,8 @@
*
*/
-#ifndef HEADER_BN_LCL_H
-#define HEADER_BN_LCL_H
+#ifndef HEADER_BN_LOCAL_H
+#define HEADER_BN_LOCAL_H
#include <openssl/opensslconf.h>
@@ -564,4 +564,4 @@ int bn_is_perfect_square(int *out_perfect, const BIGNUM *n, BN_CTX *ctx);
int bn_is_prime_bpsw(int *is_prime, const BIGNUM *n, BN_CTX *in_ctx);
__END_HIDDEN_DECLS
-#endif
+#endif /* !HEADER_BN_LOCAL_H */
diff --git a/lib/libcrypto/camellia/cmll_local.h b/lib/libcrypto/camellia/cmll_local.h
index b8bef6fb75f..ed9807c069d 100644
--- a/lib/libcrypto/camellia/cmll_local.h
+++ b/lib/libcrypto/camellia/cmll_local.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmll_local.h,v 1.1 2022/11/26 16:08:51 tb Exp $ */
+/* $OpenBSD: cmll_local.h,v 1.2 2022/11/26 17:23:17 tb Exp $ */
/* ====================================================================
* Copyright 2006 NTT (Nippon Telegraph and Telephone Corporation) .
* ALL RIGHTS RESERVED.
@@ -65,8 +65,8 @@
* ====================================================================
*/
-#ifndef HEADER_CAMELLIA_LOCL_H
-#define HEADER_CAMELLIA_LOCL_H
+#ifndef HEADER_CAMELLIA_LOCAL_H
+#define HEADER_CAMELLIA_LOCAL_H
__BEGIN_HIDDEN_DECLS
@@ -86,4 +86,4 @@ void Camellia_DecryptBlock(int keyBitLength, const u8 ciphertext[],
__END_HIDDEN_DECLS
-#endif /* #ifndef HEADER_CAMELLIA_LOCL_H */
+#endif /* !HEADER_CAMELLIA_LOCAL_H */
diff --git a/lib/libcrypto/cms/cms_local.h b/lib/libcrypto/cms/cms_local.h
index 29e8825b086..65a684e9b6d 100644
--- a/lib/libcrypto/cms/cms_local.h
+++ b/lib/libcrypto/cms/cms_local.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cms_local.h,v 1.1 2022/11/26 16:08:51 tb Exp $ */
+/* $OpenBSD: cms_local.h,v 1.2 2022/11/26 17:23:17 tb Exp $ */
/*
* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project.
@@ -52,8 +52,8 @@
* ====================================================================
*/
-#ifndef HEADER_CMS_LCL_H
-#define HEADER_CMS_LCL_H
+#ifndef HEADER_CMS_LOCAL_H
+#define HEADER_CMS_LOCAL_H
#include <openssl/x509.h>
@@ -481,4 +481,4 @@ extern const ASN1_ITEM CMS_RevocationInfoChoice_it;
extern const ASN1_ITEM CMS_SignedData_it;
extern const ASN1_ITEM CMS_CompressedData_it;
-#endif
+#endif /* !HEADER_CMS_LOCAL_H */
diff --git a/lib/libcrypto/constant_time.h b/lib/libcrypto/constant_time.h
index 2d511cc0bfe..6546526b77d 100644
--- a/lib/libcrypto/constant_time.h
+++ b/lib/libcrypto/constant_time.h
@@ -44,8 +44,8 @@
* [including the GNU Public Licence.]
*/
-#ifndef HEADER_CONSTANT_TIME_LOCL_H
-# define HEADER_CONSTANT_TIME_LOCL_H
+#ifndef HEADER_CONSTANT_TIME_H
+#define HEADER_CONSTANT_TIME_H
__BEGIN_HIDDEN_DECLS
@@ -204,4 +204,4 @@ void err_clear_last_constant_time(int clear);
__END_HIDDEN_DECLS
-#endif /* HEADER_CONSTANT_TIME_LOCL_H */
+#endif /* !HEADER_CONSTANT_TIME_H */
diff --git a/lib/libcrypto/ecdh/ech_local.h b/lib/libcrypto/ecdh/ech_local.h
index 33dd943c5a7..3c2a2673c53 100644
--- a/lib/libcrypto/ecdh/ech_local.h
+++ b/lib/libcrypto/ecdh/ech_local.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ech_local.h,v 1.1 2022/11/26 16:08:52 tb Exp $ */
+/* $OpenBSD: ech_local.h,v 1.2 2022/11/26 17:23:17 tb Exp $ */
/* ====================================================================
* Copyright (c) 2000-2005 The OpenSSL Project. All rights reserved.
*
@@ -53,8 +53,8 @@
*
*/
-#ifndef HEADER_ECH_LOCL_H
-#define HEADER_ECH_LOCL_H
+#ifndef HEADER_ECH_LOCAL_H
+#define HEADER_ECH_LOCAL_H
#include <openssl/ecdh.h>
@@ -96,4 +96,4 @@ int ecdh_KDF_X9_63(unsigned char *out, size_t outlen, const unsigned char *Z,
__END_HIDDEN_DECLS
-#endif /* HEADER_ECH_LOCL_H */
+#endif /* !HEADER_ECH_LOCAL_H */
diff --git a/lib/libcrypto/ecdsa/ecs_local.h b/lib/libcrypto/ecdsa/ecs_local.h
index 69794dfefb1..5cdf2645571 100644
--- a/lib/libcrypto/ecdsa/ecs_local.h
+++ b/lib/libcrypto/ecdsa/ecs_local.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ecs_local.h,v 1.1 2022/11/26 16:08:52 tb Exp $ */
+/* $OpenBSD: ecs_local.h,v 1.2 2022/11/26 17:23:17 tb Exp $ */
/*
* Written by Nils Larsch for the OpenSSL project
*/
@@ -56,8 +56,8 @@
*
*/
-#ifndef HEADER_ECS_LOCL_H
-#define HEADER_ECS_LOCL_H
+#ifndef HEADER_ECS_LOCAL_H
+#define HEADER_ECS_LOCAL_H
#include <openssl/ecdsa.h>
@@ -96,4 +96,4 @@ ECDSA_SIG *ossl_ecdsa_sign_sig(const unsigned char *dgst, int dgst_len,
__END_HIDDEN_DECLS
-#endif /* HEADER_ECS_LOCL_H */
+#endif /* !HEADER_ECS_LOCAL_H */
diff --git a/lib/libcrypto/evp/evp_local.h b/lib/libcrypto/evp/evp_local.h
index ba34a7949d7..3ffaf555ba0 100644
--- a/lib/libcrypto/evp/evp_local.h
+++ b/lib/libcrypto/evp/evp_local.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: evp_local.h,v 1.1 2022/11/26 16:08:52 tb Exp $ */
+/* $OpenBSD: evp_local.h,v 1.2 2022/11/26 17:23:17 tb Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 2000.
*/
@@ -56,8 +56,8 @@
*
*/
-#ifndef HEADER_EVP_LOCL_H
-#define HEADER_EVP_LOCL_H
+#ifndef HEADER_EVP_LOCAL_H
+#define HEADER_EVP_LOCAL_H
__BEGIN_HIDDEN_DECLS
@@ -321,4 +321,4 @@ int EVP_PKEY_CTX_md(EVP_PKEY_CTX *ctx, int optype, int cmd, const char *md_name)
__END_HIDDEN_DECLS
-#endif /* !HEADER_EVP_LOCL_H */
+#endif /* !HEADER_EVP_LOCAL_H */
diff --git a/lib/libcrypto/gost/gost_local.h b/lib/libcrypto/gost/gost_local.h
index 1b31f7446e3..830f14149e7 100644
--- a/lib/libcrypto/gost/gost_local.h
+++ b/lib/libcrypto/gost/gost_local.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: gost_local.h,v 1.1 2022/11/26 16:08:53 tb Exp $ */
+/* $OpenBSD: gost_local.h,v 1.2 2022/11/26 17:23:18 tb Exp $ */
/*
* Copyright (c) 2014 Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
* Copyright (c) 2005-2006 Cryptocom LTD
@@ -49,8 +49,8 @@
* ====================================================================
*/
-#ifndef HEADER_GOST_LOCL_H
-#define HEADER_GOST_LOCL_H
+#ifndef HEADER_GOST_LOCAL_H
+#define HEADER_GOST_LOCAL_H
#include <openssl/ec.h>
#include <openssl/ecdsa.h>
@@ -114,4 +114,4 @@ extern int GostR3410_512_param_id(const char *value);
__END_HIDDEN_DECLS
-#endif
+#endif /* !HEADER_GOST_LOCAL_H */
diff --git a/lib/libcrypto/pkcs12/pkcs12_local.h b/lib/libcrypto/pkcs12/pkcs12_local.h
index 8723fdb2e43..1d6f0558ed5 100644
--- a/lib/libcrypto/pkcs12/pkcs12_local.h
+++ b/lib/libcrypto/pkcs12/pkcs12_local.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pkcs12_local.h,v 1.2 2022/09/11 17:30:13 tb Exp $ */
+/* $OpenBSD: pkcs12_local.h,v 1.3 2022/11/26 17:23:18 tb Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 1999.
*/
@@ -98,4 +98,4 @@ struct pkcs12_bag_st {
__END_HIDDEN_DECLS
-#endif /* HEADER_PKCS12_LOCAL_H */
+#endif /* !HEADER_PKCS12_LOCAL_H */
diff --git a/lib/libcrypto/sm2/sm2_local.h b/lib/libcrypto/sm2/sm2_local.h
index c9342631900..ad97f2c7716 100644
--- a/lib/libcrypto/sm2/sm2_local.h
+++ b/lib/libcrypto/sm2/sm2_local.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: sm2_local.h,v 1.1 2022/11/26 16:08:54 tb Exp $ */
+/* $OpenBSD: sm2_local.h,v 1.2 2022/11/26 17:23:18 tb Exp $ */
/*
* Copyright (c) 2017, 2019 Ribose Inc
*
@@ -15,8 +15,8 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#ifndef HEADER_SM2_LOCL_H
-#define HEADER_SM2_LOCL_H
+#ifndef HEADER_SM2_LOCAL_H
+#define HEADER_SM2_LOCAL_H
#include <openssl/ec.h>
#include <openssl/ecdsa.h>
@@ -39,5 +39,4 @@ int sm2_do_verify(const EC_KEY *key, const EVP_MD *digest,
__END_HIDDEN_DECLS
-#endif
-
+#endif /* !HEADER_SM2_LOCAL_H */
diff --git a/lib/libcrypto/ts/ts_local.h b/lib/libcrypto/ts/ts_local.h
index cf1e9e0589f..07c9861e021 100644
--- a/lib/libcrypto/ts/ts_local.h
+++ b/lib/libcrypto/ts/ts_local.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ts_local.h,v 1.2 2022/09/11 17:31:19 tb Exp $ */
+/* $OpenBSD: ts_local.h,v 1.3 2022/11/26 17:23:18 tb Exp $ */
/* Written by Zoltan Glozik (zglozik@opentsa.org) for the OpenSSL
* project 2002, 2003, 2004.
*/
@@ -313,4 +313,4 @@ ESS_SIGNING_CERT_V2 *ESS_SIGNING_CERT_V2_dup(ESS_SIGNING_CERT_V2 *a);
__END_HIDDEN_DECLS
-#endif /* HEADER_TS_LOCAL_H */
+#endif /* !HEADER_TS_LOCAL_H */
diff --git a/lib/libcrypto/ui/ui_local.h b/lib/libcrypto/ui/ui_local.h
index d62c628f8ce..460b5600bdd 100644
--- a/lib/libcrypto/ui/ui_local.h
+++ b/lib/libcrypto/ui/ui_local.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ui_local.h,v 1.1 2022/11/26 16:08:54 tb Exp $ */
+/* $OpenBSD: ui_local.h,v 1.2 2022/11/26 17:23:18 tb Exp $ */
/* Written by Richard Levitte (richard@levitte.org) for the OpenSSL
* project 2001.
@@ -57,8 +57,8 @@
*
*/
-#ifndef HEADER_UI_LOCL_H
-#define HEADER_UI_LOCL_H
+#ifndef HEADER_UI_LOCAL_H
+#define HEADER_UI_LOCAL_H
#include <openssl/ui.h>
#include <openssl/crypto.h>
@@ -149,4 +149,4 @@ struct ui_st {
__END_HIDDEN_DECLS
-#endif
+#endif /* !HEADER_UI_LOCAL_H */
diff --git a/lib/libcrypto/x509/x509_local.h b/lib/libcrypto/x509/x509_local.h
index 1b1522acaac..b0c7a197f33 100644
--- a/lib/libcrypto/x509/x509_local.h
+++ b/lib/libcrypto/x509/x509_local.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: x509_local.h,v 1.1 2022/11/26 16:08:54 tb Exp $ */
+/* $OpenBSD: x509_local.h,v 1.2 2022/11/26 17:23:18 tb Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 2013.
*/
@@ -56,8 +56,8 @@
*
*/
-#ifndef HEADER_X509_LCL_H
-#define HEADER_X509_LCL_H
+#ifndef HEADER_X509_LOCAL_H
+#define HEADER_X509_LOCAL_H
__BEGIN_HIDDEN_DECLS
@@ -377,4 +377,4 @@ int name_cmp(const char *name, const char *cmp);
__END_HIDDEN_DECLS
-#endif /* !HEADER_X509_LCL_H */
+#endif /* !HEADER_X509_LOCAL_H */
diff --git a/lib/libssl/dtls_local.h b/lib/libssl/dtls_local.h
index 27d32105b7b..c7c413fef46 100644
--- a/lib/libssl/dtls_local.h
+++ b/lib/libssl/dtls_local.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: dtls_local.h,v 1.1 2022/11/26 16:08:55 tb Exp $ */
+/* $OpenBSD: dtls_local.h,v 1.2 2022/11/26 17:23:18 tb Exp $ */
/*
* DTLS implementation written by Nagendra Modadugu
* (nagendra@cs.stanford.edu) for the OpenSSL project 2005.
@@ -229,4 +229,4 @@ int dtls1_get_record(SSL *s);
__END_HIDDEN_DECLS
-#endif
+#endif /* !HEADER_DTLS_LOCL_H */
diff --git a/lib/libssl/ssl_local.h b/lib/libssl/ssl_local.h
index 85902438840..1e38d3939e8 100644
--- a/lib/libssl/ssl_local.h
+++ b/lib/libssl/ssl_local.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssl_local.h,v 1.1 2022/11/26 16:08:55 tb Exp $ */
+/* $OpenBSD: ssl_local.h,v 1.2 2022/11/26 17:23:18 tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -1535,4 +1535,4 @@ int tls_process_peer_certs(SSL *s, STACK_OF(X509) *peer_certs);
__END_HIDDEN_DECLS
-#endif
+#endif /* !HEADER_SSL_LOCL_H */