summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/sha/shatest.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/sha/shatest.c')
-rw-r--r--src/lib/libcrypto/sha/shatest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/sha/shatest.c b/src/lib/libcrypto/sha/shatest.c
index ed0fe06a7b..27614646d1 100644
--- a/src/lib/libcrypto/sha/shatest.c
+++ b/src/lib/libcrypto/sha/shatest.c
@@ -123,9 +123,9 @@ int main(int argc, char *argv[])
123 i=1; 123 i=1;
124 while (*P != NULL) 124 while (*P != NULL)
125 { 125 {
126 EVP_Digest(*P,strlen((char *)*P),md,NULL,EVP_sha(), NULL); 126 EVP_Digest(*P,strlen(*P),md,NULL,EVP_sha(), NULL);
127 p=pt(md); 127 p=pt(md);
128 if (strcmp(p,(char *)*R) != 0) 128 if (strcmp(p,*R) != 0)
129 { 129 {
130 printf("error calculating SHA on '%s'\n",*P); 130 printf("error calculating SHA on '%s'\n",*P);
131 printf("got %s instead of %s\n",p,*R); 131 printf("got %s instead of %s\n",p,*R);