summaryrefslogtreecommitdiffstats
path: root/crypto/mdc2
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2016-10-27 22:18:50 +0200
committerRichard Levitte <levitte@openssl.org>2016-11-03 13:13:31 +0100
commit97f1e97114822a04a7720b817a789cc9d2553e2b (patch)
treecd6734f890fd3cbf7006236bca0e44ec99da7145 /crypto/mdc2
parentConvert x509 selftests to internal test (diff)
downloadopenssl-97f1e97114822a04a7720b817a789cc9d2553e2b.tar.xz
openssl-97f1e97114822a04a7720b817a789cc9d2553e2b.zip
Convert mdc2 test print to internal test
Reviewed-by: Emilia Käsper <emilia@openssl.org> (Merged from https://github.com/openssl/openssl/pull/1789)
Diffstat (limited to 'crypto/mdc2')
-rw-r--r--crypto/mdc2/mdc2dgst.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/crypto/mdc2/mdc2dgst.c b/crypto/mdc2/mdc2dgst.c
index 37d99f48a5..14233b9aba 100644
--- a/crypto/mdc2/mdc2dgst.c
+++ b/crypto/mdc2/mdc2dgst.c
@@ -124,24 +124,3 @@ int MDC2_Final(unsigned char *md, MDC2_CTX *c)
memcpy(&(md[MDC2_BLOCK]), (char *)c->hh, MDC2_BLOCK);
return 1;
}
-
-#undef TEST
-
-#ifdef TEST
-main()
-{
- unsigned char md[MDC2_DIGEST_LENGTH];
- int i;
- MDC2_CTX c;
- static char *text = "Now is the time for all ";
-
- MDC2_Init(&c);
- MDC2_Update(&c, text, strlen(text));
- MDC2_Final(&(md[0]), &c);
-
- for (i = 0; i < MDC2_DIGEST_LENGTH; i++)
- printf("%02X", md[i]);
- printf("\n");
-}
-
-#endif