diff options
Diffstat (limited to 'src/lib/libcrypto/md5/md5test.c')
-rw-r--r-- | src/lib/libcrypto/md5/md5test.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/lib/libcrypto/md5/md5test.c b/src/lib/libcrypto/md5/md5test.c index bfd62629ed..2b37190e32 100644 --- a/src/lib/libcrypto/md5/md5test.c +++ b/src/lib/libcrypto/md5/md5test.c | |||
@@ -97,16 +97,16 @@ static char *pt(unsigned char *md); | |||
97 | int main(int argc, char *argv[]) | 97 | int main(int argc, char *argv[]) |
98 | { | 98 | { |
99 | int i,err=0; | 99 | int i,err=0; |
100 | unsigned char **P,**R; | 100 | char **P,**R; |
101 | char *p; | 101 | char *p; |
102 | unsigned char md[MD5_DIGEST_LENGTH]; | 102 | unsigned char md[MD5_DIGEST_LENGTH]; |
103 | 103 | ||
104 | P=(unsigned char **)test; | 104 | P=test; |
105 | R=(unsigned char **)ret; | 105 | R=ret; |
106 | i=1; | 106 | i=1; |
107 | while (*P != NULL) | 107 | while (*P != NULL) |
108 | { | 108 | { |
109 | EVP_Digest(&(P[0][0]),(unsigned long)strlen((char *)*P),md,NULL,EVP_md5(), NULL); | 109 | EVP_Digest(&(P[0][0]),strlen((char *)*P),md,NULL,EVP_md5(), NULL); |
110 | p=pt(md); | 110 | p=pt(md); |
111 | if (strcmp(p,(char *)*R) != 0) | 111 | if (strcmp(p,(char *)*R) != 0) |
112 | { | 112 | { |
@@ -120,6 +120,10 @@ int main(int argc, char *argv[]) | |||
120 | R++; | 120 | R++; |
121 | P++; | 121 | P++; |
122 | } | 122 | } |
123 | |||
124 | #ifdef OPENSSL_SYS_NETWARE | ||
125 | if (err) printf("ERROR: %d\n", err); | ||
126 | #endif | ||
123 | EXIT(err); | 127 | EXIT(err); |
124 | return(0); | 128 | return(0); |
125 | } | 129 | } |