diff options
Diffstat (limited to 'crypto/sha')
-rw-r--r-- | crypto/sha/Makefile.ssl | 8 | ||||
-rw-r--r-- | crypto/sha/sha1test.c | 3 | ||||
-rw-r--r-- | crypto/sha/shatest.c | 3 |
3 files changed, 10 insertions, 4 deletions
diff --git a/crypto/sha/Makefile.ssl b/crypto/sha/Makefile.ssl index 51ba7811c4..98fa0e2a91 100644 --- a/crypto/sha/Makefile.ssl +++ b/crypto/sha/Makefile.ssl @@ -104,12 +104,12 @@ clean: # DO NOT DELETE THIS LINE -- make depend depends on it. sha1_one.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h -sha1_one.o: ../../include/openssl/sha.h sha1_one.c +sha1_one.o: ../../include/openssl/sha.h sha1dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h sha1dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/sha.h -sha1dgst.o: ../md32_common.h sha1dgst.c sha_locl.h +sha1dgst.o: ../md32_common.h sha_locl.h sha_dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h sha_dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/sha.h -sha_dgst.o: ../md32_common.h sha_dgst.c sha_locl.h +sha_dgst.o: ../md32_common.h sha_locl.h sha_one.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h -sha_one.o: ../../include/openssl/sha.h sha_one.c +sha_one.o: ../../include/openssl/sha.h diff --git a/crypto/sha/sha1test.c b/crypto/sha/sha1test.c index a915981b5b..bddfff0c85 100644 --- a/crypto/sha/sha1test.c +++ b/crypto/sha/sha1test.c @@ -68,6 +68,7 @@ int main(int argc, char *argv[]) } #else #include <openssl/evp.h> +#include <openssl/sha.h> #ifdef CHARSET_EBCDIC #include <openssl/ebcdic.h> @@ -114,6 +115,7 @@ int main(int argc, char *argv[]) ebcdic2ascii(test[1], test[1], strlen(test[1])); #endif + EVP_MD_CTX_init(&c); P=(unsigned char **)test; R=(unsigned char **)ret; i=1; @@ -154,6 +156,7 @@ int main(int argc, char *argv[]) else printf("test 3 ok\n"); exit(err); + EVP_MD_CTX_cleanup(&c); return(0); } diff --git a/crypto/sha/shatest.c b/crypto/sha/shatest.c index d492c1515b..9face50453 100644 --- a/crypto/sha/shatest.c +++ b/crypto/sha/shatest.c @@ -68,6 +68,7 @@ int main(int argc, char *argv[]) } #else #include <openssl/evp.h> +#include <openssl/sha.h> #ifdef CHARSET_EBCDIC #include <openssl/ebcdic.h> @@ -114,6 +115,7 @@ int main(int argc, char *argv[]) ebcdic2ascii(test[1], test[1], strlen(test[1])); #endif + EVP_MD_CTX_init(&c); P=(unsigned char **)test; R=(unsigned char **)ret; i=1; @@ -153,6 +155,7 @@ int main(int argc, char *argv[]) } else printf("test 3 ok\n"); + EVP_MD_CTX_cleanup(&c); exit(err); return(0); } |