diff options
| author | deraadt <> | 2014-06-07 15:06:24 +0000 |
|---|---|---|
| committer | deraadt <> | 2014-06-07 15:06:24 +0000 |
| commit | 9c53764a0ba4c6e9262d0f1609e2b5f26d82e845 (patch) | |
| tree | 8c109a1ee473f778c99439e5209def2f14539e9f /src/lib/libcrypto/mdc2/mdc2dgst.c | |
| parent | f43ea7a8b36a855d94df48cdbc5ae25525d67207 (diff) | |
| download | openbsd-9c53764a0ba4c6e9262d0f1609e2b5f26d82e845.tar.gz openbsd-9c53764a0ba4c6e9262d0f1609e2b5f26d82e845.tar.bz2 openbsd-9c53764a0ba4c6e9262d0f1609e2b5f26d82e845.zip | |
Remove various test stubs. The good ones have been moved by jsing
and others to the regress framework. These remaining ones just
muddle us up when re-reading code repeatedly.
ok jsing
Diffstat (limited to 'src/lib/libcrypto/mdc2/mdc2dgst.c')
| -rw-r--r-- | src/lib/libcrypto/mdc2/mdc2dgst.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/lib/libcrypto/mdc2/mdc2dgst.c b/src/lib/libcrypto/mdc2/mdc2dgst.c index 302f9ab9a8..d6ce1451a1 100644 --- a/src/lib/libcrypto/mdc2/mdc2dgst.c +++ b/src/lib/libcrypto/mdc2/mdc2dgst.c | |||
| @@ -177,24 +177,3 @@ int MDC2_Final(unsigned char *md, MDC2_CTX *c) | |||
| 177 | memcpy(&(md[MDC2_BLOCK]),(char *)c->hh,MDC2_BLOCK); | 177 | memcpy(&(md[MDC2_BLOCK]),(char *)c->hh,MDC2_BLOCK); |
| 178 | return 1; | 178 | return 1; |
| 179 | } | 179 | } |
| 180 | |||
| 181 | #undef TEST | ||
| 182 | |||
| 183 | #ifdef TEST | ||
| 184 | main() | ||
| 185 | { | ||
| 186 | unsigned char md[MDC2_DIGEST_LENGTH]; | ||
| 187 | int i; | ||
| 188 | MDC2_CTX c; | ||
| 189 | static char *text="Now is the time for all "; | ||
| 190 | |||
| 191 | MDC2_Init(&c); | ||
| 192 | MDC2_Update(&c,text,strlen(text)); | ||
| 193 | MDC2_Final(&(md[0]),&c); | ||
| 194 | |||
| 195 | for (i=0; i<MDC2_DIGEST_LENGTH; i++) | ||
| 196 | printf("%02X",md[i]); | ||
| 197 | printf("\n"); | ||
| 198 | } | ||
| 199 | |||
| 200 | #endif | ||
