From e6f6c0f63e8b5db592667f610abc492cacadefca Mon Sep 17 00:00:00 2001 From: miod <> Date: Sun, 25 May 2003 22:49:37 +0000 Subject: Bring back these two files to the 3.1 branch, after the latest libssl update destroyed them by mistake. Sorry for the inconvenience, 3.1-STABLE should build again now. --- src/lib/libcrypto/mdc2/mdc2_one.c | 16 ++++++++++++++++ src/lib/libcrypto/mdc2/mdc2dgst.c | 18 ++++++++++++++++++ src/lib/libssl/src/crypto/mdc2/mdc2_one.c | 16 ++++++++++++++++ src/lib/libssl/src/crypto/mdc2/mdc2dgst.c | 18 ++++++++++++++++++ 4 files changed, 68 insertions(+) create mode 100644 src/lib/libcrypto/mdc2/mdc2_one.c create mode 100644 src/lib/libcrypto/mdc2/mdc2dgst.c create mode 100644 src/lib/libssl/src/crypto/mdc2/mdc2_one.c create mode 100644 src/lib/libssl/src/crypto/mdc2/mdc2dgst.c (limited to 'src') diff --git a/src/lib/libcrypto/mdc2/mdc2_one.c b/src/lib/libcrypto/mdc2/mdc2_one.c new file mode 100644 index 0000000000..2a3dde67d5 --- /dev/null +++ b/src/lib/libcrypto/mdc2/mdc2_one.c @@ -0,0 +1,16 @@ +/* Public Domain */ + +#include +#include + +unsigned char +*MDC2(const unsigned char *d, unsigned long n, unsigned char *md) +{ + static unsigned char m[MDC2_DIGEST_LENGTH]; + + if (md == NULL) + return (m); + else + return (md); +} + diff --git a/src/lib/libcrypto/mdc2/mdc2dgst.c b/src/lib/libcrypto/mdc2/mdc2dgst.c new file mode 100644 index 0000000000..4688982c5b --- /dev/null +++ b/src/lib/libcrypto/mdc2/mdc2dgst.c @@ -0,0 +1,18 @@ +/* Public Domain */ + +#include + +void +MDC2_Init(MDC2_CTX *c) +{ +} + +void +MDC2_Update(MDC2_CTX *c, const unsigned char *in, unsigned long len) +{ +} + +void +MDC2_Final(unsigned char *md, MDC2_CTX *c) +{ +} diff --git a/src/lib/libssl/src/crypto/mdc2/mdc2_one.c b/src/lib/libssl/src/crypto/mdc2/mdc2_one.c new file mode 100644 index 0000000000..2a3dde67d5 --- /dev/null +++ b/src/lib/libssl/src/crypto/mdc2/mdc2_one.c @@ -0,0 +1,16 @@ +/* Public Domain */ + +#include +#include + +unsigned char +*MDC2(const unsigned char *d, unsigned long n, unsigned char *md) +{ + static unsigned char m[MDC2_DIGEST_LENGTH]; + + if (md == NULL) + return (m); + else + return (md); +} + diff --git a/src/lib/libssl/src/crypto/mdc2/mdc2dgst.c b/src/lib/libssl/src/crypto/mdc2/mdc2dgst.c new file mode 100644 index 0000000000..4688982c5b --- /dev/null +++ b/src/lib/libssl/src/crypto/mdc2/mdc2dgst.c @@ -0,0 +1,18 @@ +/* Public Domain */ + +#include + +void +MDC2_Init(MDC2_CTX *c) +{ +} + +void +MDC2_Update(MDC2_CTX *c, const unsigned char *in, unsigned long len) +{ +} + +void +MDC2_Final(unsigned char *md, MDC2_CTX *c) +{ +} -- cgit v1.2.3-55-g6feb