Really add the EVP and all of the DES changes.
[openssl.git] / crypto / sha / shatest.c
index d492c1515bc57bc47affa717edaaae3e952b8829..9face504535d2d0e691b5134984415921e505c55 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;
@@ -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);
        }