diff options
Diffstat (limited to 'crypto/sha/shatest.c')
-rw-r--r-- | crypto/sha/shatest.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); } |