diff options
-rw-r--r-- | src/lib/libcrypto/asn1/x_val.c | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/x509/x509.h | 7 | ||||
-rw-r--r-- | src/lib/libcrypto/x509/x509_local.h | 7 |
3 files changed, 11 insertions, 7 deletions
diff --git a/src/lib/libcrypto/asn1/x_val.c b/src/lib/libcrypto/asn1/x_val.c index 486304e42b..08501f17e0 100644 --- a/src/lib/libcrypto/asn1/x_val.c +++ b/src/lib/libcrypto/asn1/x_val.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: x_val.c,v 1.15 2024/07/08 14:48:49 beck Exp $ */ | 1 | /* $OpenBSD: x_val.c,v 1.16 2024/08/31 10:14:17 tb 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 | * |
@@ -61,6 +61,8 @@ | |||
61 | #include <openssl/asn1t.h> | 61 | #include <openssl/asn1t.h> |
62 | #include <openssl/x509.h> | 62 | #include <openssl/x509.h> |
63 | 63 | ||
64 | #include "x509_local.h" | ||
65 | |||
64 | static const ASN1_TEMPLATE X509_VAL_seq_tt[] = { | 66 | static const ASN1_TEMPLATE X509_VAL_seq_tt[] = { |
65 | { | 67 | { |
66 | .offset = offsetof(X509_VAL, notBefore), | 68 | .offset = offsetof(X509_VAL, notBefore), |
diff --git a/src/lib/libcrypto/x509/x509.h b/src/lib/libcrypto/x509/x509.h index 3ab35d3d91..6fcd59a852 100644 --- a/src/lib/libcrypto/x509/x509.h +++ b/src/lib/libcrypto/x509/x509.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: x509.h,v 1.114 2024/08/31 10:12:23 tb Exp $ */ | 1 | /* $OpenBSD: x509.h,v 1.115 2024/08/31 10:14:17 tb 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 | * |
@@ -122,10 +122,7 @@ struct X509_algor_st { | |||
122 | 122 | ||
123 | typedef STACK_OF(X509_ALGOR) X509_ALGORS; | 123 | typedef STACK_OF(X509_ALGOR) X509_ALGORS; |
124 | 124 | ||
125 | typedef struct X509_val_st { | 125 | typedef struct X509_val_st X509_VAL; |
126 | ASN1_TIME *notBefore; | ||
127 | ASN1_TIME *notAfter; | ||
128 | } X509_VAL; | ||
129 | 126 | ||
130 | typedef struct X509_sig_st X509_SIG; | 127 | typedef struct X509_sig_st X509_SIG; |
131 | 128 | ||
diff --git a/src/lib/libcrypto/x509/x509_local.h b/src/lib/libcrypto/x509/x509_local.h index 0f0d5c1de5..a7d7940d43 100644 --- a/src/lib/libcrypto/x509/x509_local.h +++ b/src/lib/libcrypto/x509/x509_local.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: x509_local.h,v 1.29 2024/08/31 10:12:23 tb Exp $ */ | 1 | /* $OpenBSD: x509_local.h,v 1.30 2024/08/31 10:14:17 tb 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 2013. | 3 | * project 2013. |
4 | */ | 4 | */ |
@@ -80,6 +80,11 @@ __BEGIN_HIDDEN_DECLS | |||
80 | 80 | ||
81 | int X509_check_trust(X509 *x, int id, int flags); | 81 | int X509_check_trust(X509 *x, int id, int flags); |
82 | 82 | ||
83 | struct X509_val_st { | ||
84 | ASN1_TIME *notBefore; | ||
85 | ASN1_TIME *notAfter; | ||
86 | } /* X509_VAL */; | ||
87 | |||
83 | struct X509_pubkey_st { | 88 | struct X509_pubkey_st { |
84 | X509_ALGOR *algor; | 89 | X509_ALGOR *algor; |
85 | ASN1_BIT_STRING *public_key; | 90 | ASN1_BIT_STRING *public_key; |