diff options
Diffstat (limited to 'src/lib/libcrypto/asn1/a_digest.c')
-rw-r--r-- | src/lib/libcrypto/asn1/a_digest.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/lib/libcrypto/asn1/a_digest.c b/src/lib/libcrypto/asn1/a_digest.c index 8c45add557..3370aae998 100644 --- a/src/lib/libcrypto/asn1/a_digest.c +++ b/src/lib/libcrypto/asn1/a_digest.c | |||
@@ -58,16 +58,19 @@ | |||
58 | 58 | ||
59 | #include <stdio.h> | 59 | #include <stdio.h> |
60 | #include <time.h> | 60 | #include <time.h> |
61 | #include <sys/types.h> | ||
62 | #include <sys/stat.h> | ||
63 | 61 | ||
64 | #include "cryptlib.h" | 62 | #include "cryptlib.h" |
63 | |||
64 | #ifndef NO_SYS_TYPES_H | ||
65 | # include <sys/types.h> | ||
66 | #endif | ||
67 | |||
65 | #include <openssl/evp.h> | 68 | #include <openssl/evp.h> |
66 | #include <openssl/buffer.h> | 69 | #include <openssl/buffer.h> |
67 | #include <openssl/x509.h> | 70 | #include <openssl/x509.h> |
68 | 71 | ||
69 | int ASN1_digest(int (*i2d)(), EVP_MD *type, char *data, unsigned char *md, | 72 | int ASN1_digest(int (*i2d)(), const EVP_MD *type, char *data, |
70 | unsigned int *len) | 73 | unsigned char *md, unsigned int *len) |
71 | { | 74 | { |
72 | EVP_MD_CTX ctx; | 75 | EVP_MD_CTX ctx; |
73 | int i; | 76 | int i; |