diff options
Diffstat (limited to 'src/lib/libcrypto/x509/x509_lcl.h')
-rw-r--r-- | src/lib/libcrypto/x509/x509_lcl.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/lib/libcrypto/x509/x509_lcl.h b/src/lib/libcrypto/x509/x509_lcl.h index 1b352aee78..804fff48fc 100644 --- a/src/lib/libcrypto/x509/x509_lcl.h +++ b/src/lib/libcrypto/x509/x509_lcl.h | |||
@@ -61,6 +61,12 @@ | |||
61 | 61 | ||
62 | __BEGIN_HIDDEN_DECLS | 62 | __BEGIN_HIDDEN_DECLS |
63 | 63 | ||
64 | #define TS_HASH_EVP EVP_sha1() | ||
65 | #define TS_HASH_LEN SHA_DIGEST_LENGTH | ||
66 | |||
67 | #define X509_CERT_HASH_EVP EVP_sha512() | ||
68 | #define X509_CERT_HASH_LEN SHA512_DIGEST_LENGTH | ||
69 | |||
64 | struct X509_pubkey_st { | 70 | struct X509_pubkey_st { |
65 | X509_ALGOR *algor; | 71 | X509_ALGOR *algor; |
66 | ASN1_BIT_STRING *public_key; | 72 | ASN1_BIT_STRING *public_key; |
@@ -177,9 +183,9 @@ struct x509_st { | |||
177 | STACK_OF(IPAddressFamily) *rfc3779_addr; | 183 | STACK_OF(IPAddressFamily) *rfc3779_addr; |
178 | struct ASIdentifiers_st *rfc3779_asid; | 184 | struct ASIdentifiers_st *rfc3779_asid; |
179 | #endif | 185 | #endif |
180 | #ifndef OPENSSL_NO_SHA | 186 | unsigned char hash[X509_CERT_HASH_LEN]; |
181 | unsigned char sha1_hash[SHA_DIGEST_LENGTH]; | 187 | time_t not_before; |
182 | #endif | 188 | time_t not_after; |
183 | X509_CERT_AUX *aux; | 189 | X509_CERT_AUX *aux; |
184 | } /* X509 */; | 190 | } /* X509 */; |
185 | 191 | ||