projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sha[1|512]-x86_64.pl: fix logical errors with $shaext=0.
[openssl.git]
/
crypto
/
sha
/
shatest.c
diff --git
a/crypto/sha/shatest.c
b/crypto/sha/shatest.c
index bfb11f0a5f2cf5fca08e26bcc7f720a4e0a72b7f..27614646d1548463dc66e0d728d12c8782a3e548 100644
(file)
--- a/
crypto/sha/shatest.c
+++ b/
crypto/sha/shatest.c
@@
-106,7
+106,7
@@
static char *pt(unsigned char *md);
int main(int argc, char *argv[])
{
int i,err=0;
int main(int argc, char *argv[])
{
int i,err=0;
-
unsigned
char **P,**R;
+ char **P,**R;
static unsigned char buf[1000];
char *p,*r;
EVP_MD_CTX c;
static unsigned char buf[1000];
char *p,*r;
EVP_MD_CTX c;
@@
-118,14
+118,14
@@
int main(int argc, char *argv[])
#endif
EVP_MD_CTX_init(&c);
#endif
EVP_MD_CTX_init(&c);
- P=
(unsigned char **)
test;
- R=
(unsigned char **)
ret;
+ P=test;
+ R=ret;
i=1;
while (*P != NULL)
{
i=1;
while (*P != NULL)
{
- EVP_Digest(*P,strlen(
(char *)
*P),md,NULL,EVP_sha(), NULL);
+ EVP_Digest(*P,strlen(*P),md,NULL,EVP_sha(), NULL);
p=pt(md);
p=pt(md);
- if (strcmp(p,
(char *)
*R) != 0)
+ if (strcmp(p,*R) != 0)
{
printf("error calculating SHA on '%s'\n",*P);
printf("got %s instead of %s\n",p,*R);
{
printf("error calculating SHA on '%s'\n",*P);
printf("got %s instead of %s\n",p,*R);