diff options
| author | tb <> | 2025-11-26 10:19:57 +0000 |
|---|---|---|
| committer | tb <> | 2025-11-26 10:19:57 +0000 |
| commit | 4879f73ba340a5a6a1e4b5812f046c92cf362d95 (patch) | |
| tree | f4e49dade531b065882e4b3f1a67e3ecb0647b36 /src/lib/libcrypto/ec/ec_local.h | |
| parent | c1cd9b31174d2c148f5a1dedde49f456a97398d4 (diff) | |
| download | openbsd-4879f73ba340a5a6a1e4b5812f046c92cf362d95.tar.gz openbsd-4879f73ba340a5a6a1e4b5812f046c92cf362d95.tar.bz2 openbsd-4879f73ba340a5a6a1e4b5812f046c92cf362d95.zip | |
libcrypto: add header guards to *_local.h
An upcoming change requires the inclusion of asn1_local.h in x509_local.h
which doesn't work due to missing header guards. Add guards to all local
headers that don't have them, although reacharounds and multiple inclusions
are unlikely to occur for most of those.
ok jsing
Diffstat (limited to 'src/lib/libcrypto/ec/ec_local.h')
| -rw-r--r-- | src/lib/libcrypto/ec/ec_local.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/libcrypto/ec/ec_local.h b/src/lib/libcrypto/ec/ec_local.h index eac9e6d26c..48a7d929ea 100644 --- a/src/lib/libcrypto/ec/ec_local.h +++ b/src/lib/libcrypto/ec/ec_local.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ec_local.h,v 1.70 2025/08/03 15:07:57 jsing Exp $ */ | 1 | /* $OpenBSD: ec_local.h,v 1.71 2025/11/26 10:19:57 tb Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Originally written by Bodo Moeller for the OpenSSL project. | 3 | * Originally written by Bodo Moeller for the OpenSSL project. |
| 4 | */ | 4 | */ |
| @@ -69,6 +69,9 @@ | |||
| 69 | * | 69 | * |
| 70 | */ | 70 | */ |
| 71 | 71 | ||
| 72 | #ifndef HEADER_EC_LOCAL_H | ||
| 73 | #define HEADER_EC_LOCAL_H | ||
| 74 | |||
| 72 | #include <stdlib.h> | 75 | #include <stdlib.h> |
| 73 | 76 | ||
| 74 | #include <openssl/bn.h> | 77 | #include <openssl/bn.h> |
| @@ -265,3 +268,5 @@ int ecdh_KDF_X9_63(unsigned char *out, size_t outlen, const unsigned char *Z, | |||
| 265 | size_t Zlen, const unsigned char *sinfo, size_t sinfolen, const EVP_MD *md); | 268 | size_t Zlen, const unsigned char *sinfo, size_t sinfolen, const EVP_MD *md); |
| 266 | 269 | ||
| 267 | __END_HIDDEN_DECLS | 270 | __END_HIDDEN_DECLS |
| 271 | |||
| 272 | #endif /* HEADER_EC_LOCAL_H */ | ||
