diff options
| author | kenjiro <> | 2026-07-31 00:50:52 +0000 |
|---|---|---|
| committer | kenjiro <> | 2026-07-31 00:50:52 +0000 |
| commit | e1b703522865e8996212ffc767bc616d3a7bc7b0 (patch) | |
| tree | 04d3ad9ad4f09bcdb811daf80f2774e6d828e985 /src/lib/libcrypto/asn1 | |
| parent | 3d5c26fca686ebb3960c3fa26ceab85b5a95c559 (diff) | |
| download | openbsd-e1b703522865e8996212ffc767bc616d3a7bc7b0.tar.gz openbsd-e1b703522865e8996212ffc767bc616d3a7bc7b0.tar.bz2 openbsd-e1b703522865e8996212ffc767bc616d3a7bc7b0.zip | |
Add missing internal header includes
Include the relevant internal headers in implementation files that define
internal functions.
Also make asn1_local.h and pkcs12_local.h self-contained by including their
corresponding public headers.
ok tb beck
Diffstat (limited to 'src/lib/libcrypto/asn1')
| -rw-r--r-- | src/lib/libcrypto/asn1/a_int.c | 3 | ||||
| -rw-r--r-- | src/lib/libcrypto/asn1/a_time_posix.c | 3 | ||||
| -rw-r--r-- | src/lib/libcrypto/asn1/a_time_tm.c | 3 | ||||
| -rw-r--r-- | src/lib/libcrypto/asn1/asn1_lib.c | 3 | ||||
| -rw-r--r-- | src/lib/libcrypto/asn1/asn1_local.h | 4 | ||||
| -rw-r--r-- | src/lib/libcrypto/asn1/asn1_types.c | 4 | ||||
| -rw-r--r-- | src/lib/libcrypto/asn1/bio_asn1.c | 3 | ||||
| -rw-r--r-- | src/lib/libcrypto/asn1/tasn_typ.c | 4 | ||||
| -rw-r--r-- | src/lib/libcrypto/asn1/tasn_utl.c | 3 |
9 files changed, 21 insertions, 9 deletions
diff --git a/src/lib/libcrypto/asn1/a_int.c b/src/lib/libcrypto/asn1/a_int.c index f171e330f6..5d05c2022c 100644 --- a/src/lib/libcrypto/asn1/a_int.c +++ b/src/lib/libcrypto/asn1/a_int.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: a_int.c,v 1.49 2025/05/10 05:54:38 tb Exp $ */ | 1 | /* $OpenBSD: a_int.c,v 1.50 2026/07/31 00:50:52 kenjiro Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -65,6 +65,7 @@ | |||
| 65 | #include <openssl/bn.h> | 65 | #include <openssl/bn.h> |
| 66 | #include <openssl/buffer.h> | 66 | #include <openssl/buffer.h> |
| 67 | 67 | ||
| 68 | #include "asn1_local.h" | ||
| 68 | #include "bytestring.h" | 69 | #include "bytestring.h" |
| 69 | #include "err_local.h" | 70 | #include "err_local.h" |
| 70 | 71 | ||
diff --git a/src/lib/libcrypto/asn1/a_time_posix.c b/src/lib/libcrypto/asn1/a_time_posix.c index d4439b4701..da21ae7cbc 100644 --- a/src/lib/libcrypto/asn1/a_time_posix.c +++ b/src/lib/libcrypto/asn1/a_time_posix.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: a_time_posix.c,v 1.5 2024/02/18 16:28:38 tb Exp $ */ | 1 | /* $OpenBSD: a_time_posix.c,v 1.6 2026/07/31 00:50:52 kenjiro Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2022, Google Inc. | 3 | * Copyright (c) 2022, Google Inc. |
| 4 | * Copyright (c) 2022, Bob Beck <beck@obtuse.com> | 4 | * Copyright (c) 2022, Bob Beck <beck@obtuse.com> |
| @@ -30,6 +30,7 @@ | |||
| 30 | #include <openssl/asn1.h> | 30 | #include <openssl/asn1.h> |
| 31 | #include <openssl/posix_time.h> | 31 | #include <openssl/posix_time.h> |
| 32 | 32 | ||
| 33 | #include "asn1_local.h" | ||
| 33 | #include "crypto_internal.h" | 34 | #include "crypto_internal.h" |
| 34 | 35 | ||
| 35 | #define SECS_PER_HOUR (int64_t)(60 * 60) | 36 | #define SECS_PER_HOUR (int64_t)(60 * 60) |
diff --git a/src/lib/libcrypto/asn1/a_time_tm.c b/src/lib/libcrypto/asn1/a_time_tm.c index dd2893167f..b5210641a6 100644 --- a/src/lib/libcrypto/asn1/a_time_tm.c +++ b/src/lib/libcrypto/asn1/a_time_tm.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: a_time_tm.c,v 1.43 2025/05/10 05:54:38 tb Exp $ */ | 1 | /* $OpenBSD: a_time_tm.c,v 1.44 2026/07/31 00:50:52 kenjiro Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2015 Bob Beck <beck@openbsd.org> | 3 | * Copyright (c) 2015 Bob Beck <beck@openbsd.org> |
| 4 | * | 4 | * |
| @@ -26,6 +26,7 @@ | |||
| 26 | #include "asn1_local.h" | 26 | #include "asn1_local.h" |
| 27 | #include "bytestring.h" | 27 | #include "bytestring.h" |
| 28 | #include "err_local.h" | 28 | #include "err_local.h" |
| 29 | #include "x509_internal.h" | ||
| 29 | 30 | ||
| 30 | #define RFC5280 0 | 31 | #define RFC5280 0 |
| 31 | #define GENTIME_LENGTH 15 | 32 | #define GENTIME_LENGTH 15 |
diff --git a/src/lib/libcrypto/asn1/asn1_lib.c b/src/lib/libcrypto/asn1/asn1_lib.c index ac8da0e61d..6d65dc9d68 100644 --- a/src/lib/libcrypto/asn1/asn1_lib.c +++ b/src/lib/libcrypto/asn1/asn1_lib.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: asn1_lib.c,v 1.54 2022/05/05 19:18:56 jsing Exp $ */ | 1 | /* $OpenBSD: asn1_lib.c,v 1.55 2026/07/31 00:50:52 kenjiro Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2021 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2021 Joel Sing <jsing@openbsd.org> |
| 4 | * | 4 | * |
| @@ -18,6 +18,7 @@ | |||
| 18 | #include <limits.h> | 18 | #include <limits.h> |
| 19 | #include <stdlib.h> | 19 | #include <stdlib.h> |
| 20 | 20 | ||
| 21 | #include "asn1_local.h" | ||
| 21 | #include "bytestring.h" | 22 | #include "bytestring.h" |
| 22 | 23 | ||
| 23 | int | 24 | int |
diff --git a/src/lib/libcrypto/asn1/asn1_local.h b/src/lib/libcrypto/asn1/asn1_local.h index d61cfaa7b9..723c6574df 100644 --- a/src/lib/libcrypto/asn1/asn1_local.h +++ b/src/lib/libcrypto/asn1/asn1_local.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: asn1_local.h,v 1.11 2025/11/26 10:19:57 tb Exp $ */ | 1 | /* $OpenBSD: asn1_local.h,v 1.12 2026/07/31 00:50:52 kenjiro Exp $ */ |
| 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
| 3 | * project 2006. | 3 | * project 2006. |
| 4 | */ | 4 | */ |
| @@ -59,6 +59,8 @@ | |||
| 59 | #ifndef HEADER_ASN1_LOCAL_H | 59 | #ifndef HEADER_ASN1_LOCAL_H |
| 60 | #define HEADER_ASN1_LOCAL_H | 60 | #define HEADER_ASN1_LOCAL_H |
| 61 | 61 | ||
| 62 | #include <openssl/asn1.h> | ||
| 63 | |||
| 62 | #include "bytestring.h" | 64 | #include "bytestring.h" |
| 63 | 65 | ||
| 64 | __BEGIN_HIDDEN_DECLS | 66 | __BEGIN_HIDDEN_DECLS |
diff --git a/src/lib/libcrypto/asn1/asn1_types.c b/src/lib/libcrypto/asn1/asn1_types.c index 5f9644a718..712c2297fb 100644 --- a/src/lib/libcrypto/asn1/asn1_types.c +++ b/src/lib/libcrypto/asn1/asn1_types.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: asn1_types.c,v 1.3 2023/07/05 21:23:36 beck Exp $ */ | 1 | /* $OpenBSD: asn1_types.c,v 1.4 2026/07/31 00:50:52 kenjiro Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2021 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2021 Joel Sing <jsing@openbsd.org> |
| 4 | * | 4 | * |
| @@ -19,6 +19,8 @@ | |||
| 19 | 19 | ||
| 20 | #include <openssl/asn1.h> | 20 | #include <openssl/asn1.h> |
| 21 | 21 | ||
| 22 | #include "asn1_local.h" | ||
| 23 | |||
| 22 | #define ASN1_ENCODING_CONSTRUCTED_ONLY 1 | 24 | #define ASN1_ENCODING_CONSTRUCTED_ONLY 1 |
| 23 | #define ASN1_ENCODING_PRIMITIVE_ONLY 2 | 25 | #define ASN1_ENCODING_PRIMITIVE_ONLY 2 |
| 24 | 26 | ||
diff --git a/src/lib/libcrypto/asn1/bio_asn1.c b/src/lib/libcrypto/asn1/bio_asn1.c index b9f54cd4ef..acd0f4f146 100644 --- a/src/lib/libcrypto/asn1/bio_asn1.c +++ b/src/lib/libcrypto/asn1/bio_asn1.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: bio_asn1.c,v 1.23 2023/07/28 09:58:30 tb Exp $ */ | 1 | /* $OpenBSD: bio_asn1.c,v 1.24 2026/07/31 00:50:52 kenjiro Exp $ */ |
| 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
| 3 | * project. | 3 | * project. |
| 4 | */ | 4 | */ |
| @@ -67,6 +67,7 @@ | |||
| 67 | #include <openssl/bio.h> | 67 | #include <openssl/bio.h> |
| 68 | #include <openssl/asn1.h> | 68 | #include <openssl/asn1.h> |
| 69 | 69 | ||
| 70 | #include "asn1_local.h" | ||
| 70 | #include "bio_local.h" | 71 | #include "bio_local.h" |
| 71 | 72 | ||
| 72 | #define BIO_C_SET_PREFIX 149 | 73 | #define BIO_C_SET_PREFIX 149 |
diff --git a/src/lib/libcrypto/asn1/tasn_typ.c b/src/lib/libcrypto/asn1/tasn_typ.c index 64faad7240..a30a06918d 100644 --- a/src/lib/libcrypto/asn1/tasn_typ.c +++ b/src/lib/libcrypto/asn1/tasn_typ.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: tasn_typ.c,v 1.21 2025/08/22 14:07:34 tb Exp $ */ | 1 | /* $OpenBSD: tasn_typ.c,v 1.22 2026/07/31 00:50:52 kenjiro Exp $ */ |
| 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
| 3 | * project 2000. | 3 | * project 2000. |
| 4 | */ | 4 | */ |
| @@ -59,6 +59,8 @@ | |||
| 59 | #include <openssl/asn1.h> | 59 | #include <openssl/asn1.h> |
| 60 | #include <openssl/asn1t.h> | 60 | #include <openssl/asn1t.h> |
| 61 | 61 | ||
| 62 | #include "asn1_local.h" | ||
| 63 | |||
| 62 | /* Declarations for string types */ | 64 | /* Declarations for string types */ |
| 63 | 65 | ||
| 64 | const ASN1_ITEM ASN1_NULL_it = { | 66 | const ASN1_ITEM ASN1_NULL_it = { |
diff --git a/src/lib/libcrypto/asn1/tasn_utl.c b/src/lib/libcrypto/asn1/tasn_utl.c index 178a364c89..69b2187357 100644 --- a/src/lib/libcrypto/asn1/tasn_utl.c +++ b/src/lib/libcrypto/asn1/tasn_utl.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: tasn_utl.c,v 1.19 2025/05/10 05:54:38 tb Exp $ */ | 1 | /* $OpenBSD: tasn_utl.c,v 1.20 2026/07/31 00:50:52 kenjiro Exp $ */ |
| 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
| 3 | * project 2000. | 3 | * project 2000. |
| 4 | */ | 4 | */ |
| @@ -64,6 +64,7 @@ | |||
| 64 | #include <openssl/asn1t.h> | 64 | #include <openssl/asn1t.h> |
| 65 | #include <openssl/objects.h> | 65 | #include <openssl/objects.h> |
| 66 | 66 | ||
| 67 | #include "asn1_local.h" | ||
| 67 | #include "bytestring.h" | 68 | #include "bytestring.h" |
| 68 | #include "err_local.h" | 69 | #include "err_local.h" |
| 69 | 70 | ||
