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/x509 | |
| 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/x509')
| -rw-r--r-- | src/lib/libcrypto/x509/x509_ia5.c | 3 | ||||
| -rw-r--r-- | src/lib/libcrypto/x509/x509_info.c | 3 | ||||
| -rw-r--r-- | src/lib/libcrypto/x509/x509_int.c | 4 | ||||
| -rw-r--r-- | src/lib/libcrypto/x509/x509_ocsp.c | 3 | ||||
| -rw-r--r-- | src/lib/libcrypto/x509/x509_pku.c | 4 | ||||
| -rw-r--r-- | src/lib/libcrypto/x509/x509_utl.c | 3 |
6 files changed, 14 insertions, 6 deletions
diff --git a/src/lib/libcrypto/x509/x509_ia5.c b/src/lib/libcrypto/x509/x509_ia5.c index b8886c6cb8..712ce5c702 100644 --- a/src/lib/libcrypto/x509/x509_ia5.c +++ b/src/lib/libcrypto/x509/x509_ia5.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: x509_ia5.c,v 1.3 2025/05/10 05:54:39 tb Exp $ */ | 1 | /* $OpenBSD: x509_ia5.c,v 1.4 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 1999. | 3 | * project 1999. |
| 4 | */ | 4 | */ |
| @@ -64,6 +64,7 @@ | |||
| 64 | #include <openssl/x509v3.h> | 64 | #include <openssl/x509v3.h> |
| 65 | 65 | ||
| 66 | #include "err_local.h" | 66 | #include "err_local.h" |
| 67 | #include "x509_local.h" | ||
| 67 | 68 | ||
| 68 | static char *i2s_ASN1_IA5STRING(X509V3_EXT_METHOD *method, ASN1_IA5STRING *ia5); | 69 | static char *i2s_ASN1_IA5STRING(X509V3_EXT_METHOD *method, ASN1_IA5STRING *ia5); |
| 69 | static ASN1_IA5STRING *s2i_ASN1_IA5STRING(X509V3_EXT_METHOD *method, | 70 | static ASN1_IA5STRING *s2i_ASN1_IA5STRING(X509V3_EXT_METHOD *method, |
diff --git a/src/lib/libcrypto/x509/x509_info.c b/src/lib/libcrypto/x509/x509_info.c index c91642a02e..4b2ee10d28 100644 --- a/src/lib/libcrypto/x509/x509_info.c +++ b/src/lib/libcrypto/x509/x509_info.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: x509_info.c,v 1.6 2025/05/10 05:54:39 tb Exp $ */ | 1 | /* $OpenBSD: x509_info.c,v 1.7 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 1999. | 3 | * project 1999. |
| 4 | */ | 4 | */ |
| @@ -65,6 +65,7 @@ | |||
| 65 | #include <openssl/x509v3.h> | 65 | #include <openssl/x509v3.h> |
| 66 | 66 | ||
| 67 | #include "err_local.h" | 67 | #include "err_local.h" |
| 68 | #include "x509_local.h" | ||
| 68 | 69 | ||
| 69 | static STACK_OF(CONF_VALUE) *i2v_AUTHORITY_INFO_ACCESS( | 70 | static STACK_OF(CONF_VALUE) *i2v_AUTHORITY_INFO_ACCESS( |
| 70 | X509V3_EXT_METHOD *method, AUTHORITY_INFO_ACCESS *ainfo, | 71 | X509V3_EXT_METHOD *method, AUTHORITY_INFO_ACCESS *ainfo, |
diff --git a/src/lib/libcrypto/x509/x509_int.c b/src/lib/libcrypto/x509/x509_int.c index 2236bfe4c4..76979f79b0 100644 --- a/src/lib/libcrypto/x509/x509_int.c +++ b/src/lib/libcrypto/x509/x509_int.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: x509_int.c,v 1.2 2024/07/13 15:08:58 tb Exp $ */ | 1 | /* $OpenBSD: x509_int.c,v 1.3 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 1999. | 3 | * project 1999. |
| 4 | */ | 4 | */ |
| @@ -60,6 +60,8 @@ | |||
| 60 | 60 | ||
| 61 | #include <openssl/x509v3.h> | 61 | #include <openssl/x509v3.h> |
| 62 | 62 | ||
| 63 | #include "x509_local.h" | ||
| 64 | |||
| 63 | static const X509V3_EXT_METHOD x509v3_ext_crl_number = { | 65 | static const X509V3_EXT_METHOD x509v3_ext_crl_number = { |
| 64 | .ext_nid = NID_crl_number, | 66 | .ext_nid = NID_crl_number, |
| 65 | .ext_flags = 0, | 67 | .ext_flags = 0, |
diff --git a/src/lib/libcrypto/x509/x509_ocsp.c b/src/lib/libcrypto/x509/x509_ocsp.c index d0a0d49890..54a04ea8fa 100644 --- a/src/lib/libcrypto/x509/x509_ocsp.c +++ b/src/lib/libcrypto/x509/x509_ocsp.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: x509_ocsp.c,v 1.5 2025/05/10 05:54:39 tb Exp $ */ | 1 | /* $OpenBSD: x509_ocsp.c,v 1.6 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 1999. | 3 | * project 1999. |
| 4 | */ | 4 | */ |
| @@ -70,6 +70,7 @@ | |||
| 70 | 70 | ||
| 71 | #include "err_local.h" | 71 | #include "err_local.h" |
| 72 | #include "ocsp_local.h" | 72 | #include "ocsp_local.h" |
| 73 | #include "x509_local.h" | ||
| 73 | 74 | ||
| 74 | /* OCSP extensions and a couple of CRL entry extensions | 75 | /* OCSP extensions and a couple of CRL entry extensions |
| 75 | */ | 76 | */ |
diff --git a/src/lib/libcrypto/x509/x509_pku.c b/src/lib/libcrypto/x509/x509_pku.c index 6753f0f733..75cf5e6763 100644 --- a/src/lib/libcrypto/x509/x509_pku.c +++ b/src/lib/libcrypto/x509/x509_pku.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: x509_pku.c,v 1.5 2024/07/13 15:08:58 tb Exp $ */ | 1 | /* $OpenBSD: x509_pku.c,v 1.6 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 1999. | 3 | * project 1999. |
| 4 | */ | 4 | */ |
| @@ -62,6 +62,8 @@ | |||
| 62 | #include <openssl/asn1t.h> | 62 | #include <openssl/asn1t.h> |
| 63 | #include <openssl/x509v3.h> | 63 | #include <openssl/x509v3.h> |
| 64 | 64 | ||
| 65 | #include "x509_local.h" | ||
| 66 | |||
| 65 | static int i2r_PKEY_USAGE_PERIOD(X509V3_EXT_METHOD *method, | 67 | static int i2r_PKEY_USAGE_PERIOD(X509V3_EXT_METHOD *method, |
| 66 | PKEY_USAGE_PERIOD *usage, BIO *out, int indent); | 68 | PKEY_USAGE_PERIOD *usage, BIO *out, int indent); |
| 67 | 69 | ||
diff --git a/src/lib/libcrypto/x509/x509_utl.c b/src/lib/libcrypto/x509/x509_utl.c index 2e60834edf..20c58dd8c5 100644 --- a/src/lib/libcrypto/x509/x509_utl.c +++ b/src/lib/libcrypto/x509/x509_utl.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: x509_utl.c,v 1.28 2026/01/12 22:08:34 tb Exp $ */ | 1 | /* $OpenBSD: x509_utl.c,v 1.29 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 | */ |
| @@ -69,6 +69,7 @@ | |||
| 69 | #include "bytestring.h" | 69 | #include "bytestring.h" |
| 70 | #include "conf_local.h" | 70 | #include "conf_local.h" |
| 71 | #include "err_local.h" | 71 | #include "err_local.h" |
| 72 | #include "x509_local.h" | ||
| 72 | 73 | ||
| 73 | /* | 74 | /* |
| 74 | * Match reference identifiers starting with "." to any sub-domain. This | 75 | * Match reference identifiers starting with "." to any sub-domain. This |
