projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix Win32 build.
[oweals/openssl.git]
/
crypto
/
sha
/
sha1test.c
diff --git
a/crypto/sha/sha1test.c
b/crypto/sha/sha1test.c
index cddd598f227606597648cfd862ba5eeeec9d5b99..6feb3964c7577f6083532d098fff25b45f213962 100644
(file)
--- a/
crypto/sha/sha1test.c
+++ b/
crypto/sha/sha1test.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,12
+118,12
@@
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,
(unsigned long)
strlen((char *)*P),md,NULL,EVP_sha1(), NULL);
+ EVP_Digest(*P,strlen((char *)*P),md,NULL,EVP_sha1(), NULL);
p=pt(md);
if (strcmp(p,(char *)*R) != 0)
{
p=pt(md);
if (strcmp(p,(char *)*R) != 0)
{