summaryrefslogtreecommitdiffstats
path: root/crypto/md5
diff options
context:
space:
mode:
authorUlf Möller <ulf@openssl.org>1999-04-26 16:43:10 +0000
committerUlf Möller <ulf@openssl.org>1999-04-26 16:43:10 +0000
commita9be3af5ad4836f7e50f0546311ca90c717b861e (patch)
treef44f7f8c4497d85da4c5cbd08067479bb20ced95 /crypto/md5
parent47339f6179fbefafc793c10b0411ed0365497d65 (diff)
Remove NOPROTO definitions and error code comments.
Diffstat (limited to 'crypto/md5')
-rw-r--r--crypto/md5/md5.c7
-rw-r--r--crypto/md5/md5.h9
-rw-r--r--crypto/md5/md5_dgst.c10
-rw-r--r--crypto/md5/md5_locl.h4
-rw-r--r--crypto/md5/md5test.c5
5 files changed, 0 insertions, 35 deletions
diff --git a/crypto/md5/md5.c b/crypto/md5/md5.c
index 1ca642f324..ef65a1d72f 100644
--- a/crypto/md5/md5.c
+++ b/crypto/md5/md5.c
@@ -62,16 +62,9 @@
#define BUFSIZE 1024*16
-#ifndef NOPROTO
void do_fp(FILE *f);
void pt(unsigned char *md);
int read(int, void *, unsigned int);
-#else
-void do_fp();
-void pt();
-int read();
-#endif
-
int main(int argc, char **argv)
{
int i,err=0;
diff --git a/crypto/md5/md5.h b/crypto/md5/md5.h
index 93e65731a3..fc767872ed 100644
--- a/crypto/md5/md5.h
+++ b/crypto/md5/md5.h
@@ -78,20 +78,11 @@ typedef struct MD5state_st
int num;
} MD5_CTX;
-#ifndef NOPROTO
void MD5_Init(MD5_CTX *c);
void MD5_Update(MD5_CTX *c, const void *data, unsigned long len);
void MD5_Final(unsigned char *md, MD5_CTX *c);
unsigned char *MD5(unsigned char *d, unsigned long n, unsigned char *md);
void MD5_Transform(MD5_CTX *c, unsigned char *b);
-#else
-void MD5_Init();
-void MD5_Update();
-void MD5_Final();
-unsigned char *MD5();
-void MD5_Transform();
-#endif
-
#ifdef __cplusplus
}
#endif
diff --git a/crypto/md5/md5_dgst.c b/crypto/md5/md5_dgst.c
index fd65c5503c..2671b00172 100644
--- a/crypto/md5/md5_dgst.c
+++ b/crypto/md5/md5_dgst.c
@@ -70,22 +70,12 @@ char *MD5_version="MD5" OPENSSL_VERSION_PTEXT;
#define INIT_DATA_C (unsigned long)0x98badcfeL
#define INIT_DATA_D (unsigned long)0x10325476L
-#ifndef NOPROTO
# ifdef MD5_ASM
void md5_block_x86(MD5_CTX *c, unsigned long *p,int num);
# define md5_block md5_block_x86
# else
static void md5_block(MD5_CTX *c, unsigned long *p,int num);
# endif
-#else
-# ifdef MD5_ASM
- void md5_block_x86();
-# define md5_block md5_block_x86
-# else
- static void md5_block();
-# endif
-#endif
-
void MD5_Init(MD5_CTX *c)
{
c->A=INIT_DATA_A;
diff --git a/crypto/md5/md5_locl.h b/crypto/md5/md5_locl.h
index 2962e773e3..fe7397a495 100644
--- a/crypto/md5/md5_locl.h
+++ b/crypto/md5/md5_locl.h
@@ -69,10 +69,6 @@
#define UCHAR unsigned char
#define UINT unsigned int
-#if defined(NOCONST)
-#define const
-#endif
-
#undef c2l
#define c2l(c,l) (l = ((unsigned long)(*((c)++))) , \
l|=(((unsigned long)(*((c)++)))<< 8), \
diff --git a/crypto/md5/md5test.c b/crypto/md5/md5test.c
index cb9e74be97..2778b40ef6 100644
--- a/crypto/md5/md5test.c
+++ b/crypto/md5/md5test.c
@@ -82,12 +82,7 @@ char *ret[]={
"57edf4a22be3c955ac49da2e2107b67a",
};
-#ifndef NOPROTO
static char *pt(unsigned char *md);
-#else
-static char *pt();
-#endif
-
int main(int argc, char *argv[])
{
int i,err=0;