summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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}