summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormiod <>2003-05-25 22:49:37 +0000
committermiod <>2003-05-25 22:49:37 +0000
commite6f6c0f63e8b5db592667f610abc492cacadefca (patch)
tree54aefad5e645e0edd70a99a68c7e792744ac7ca2
parent64e4102ac6144c763a33eac43888cd0eb7e96d05 (diff)
downloadopenbsd-OPENBSD_3_1.tar.gz
openbsd-OPENBSD_3_1.tar.bz2
openbsd-OPENBSD_3_1.zip
Bring back these two files to the 3.1 branch, after the latest libssl updateOPENBSD_3_1
destroyed them by mistake. Sorry for the inconvenience, 3.1-STABLE should build again now.
-rw-r--r--src/lib/libcrypto/mdc2/mdc2_one.c16
-rw-r--r--src/lib/libcrypto/mdc2/mdc2dgst.c18
-rw-r--r--src/lib/libssl/src/crypto/mdc2/mdc2_one.c16
-rw-r--r--src/lib/libssl/src/crypto/mdc2/mdc2dgst.c18
4 files changed, 68 insertions, 0 deletions
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 @@
1/* Public Domain */
2
3#include <stddef.h>
4#include <openssl/mdc2.h>
5
6unsigned char
7*MDC2(const unsigned char *d, unsigned long n, unsigned char *md)
8{
9 static unsigned char m[MDC2_DIGEST_LENGTH];
10
11 if (md == NULL)
12 return (m);
13 else
14 return (md);
15}
16
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 @@
1/* Public Domain */
2
3#include <openssl/mdc2.h>
4
5void
6MDC2_Init(MDC2_CTX *c)
7{
8}
9
10void
11MDC2_Update(MDC2_CTX *c, const unsigned char *in, unsigned long len)
12{
13}
14
15void
16MDC2_Final(unsigned char *md, MDC2_CTX *c)
17{
18}
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 @@
1/* Public Domain */
2
3#include <stddef.h>
4#include <openssl/mdc2.h>
5
6unsigned char
7*MDC2(const unsigned char *d, unsigned long n, unsigned char *md)
8{
9 static unsigned char m[MDC2_DIGEST_LENGTH];
10
11 if (md == NULL)
12 return (m);
13 else
14 return (md);
15}
16
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 @@
1/* Public Domain */
2
3#include <openssl/mdc2.h>
4
5void
6MDC2_Init(MDC2_CTX *c)
7{
8}
9
10void
11MDC2_Update(MDC2_CTX *c, const unsigned char *in, unsigned long len)
12{
13}
14
15void
16MDC2_Final(unsigned char *md, MDC2_CTX *c)
17{
18}