Really add the EVP and all of the DES changes.
[openssl.git] / crypto / sha / sha1test.c
index a915981b5bad0c721410295709a066df4d0e5c8a..bddfff0c85aa1f4d4c2a48705e87174c95a72b88 100644 (file)
@@ -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);
        }