diff options
author | deraadt <> | 2014-06-07 15:06:24 +0000 |
---|---|---|
committer | deraadt <> | 2014-06-07 15:06:24 +0000 |
commit | acc9efcd81c21f083ddd54c813e692ffd635cc6a (patch) | |
tree | 8c109a1ee473f778c99439e5209def2f14539e9f /src/lib/libcrypto/mdc2 | |
parent | bc5befed3a1330da031774725e30bd7b82390823 (diff) | |
download | openbsd-acc9efcd81c21f083ddd54c813e692ffd635cc6a.tar.gz openbsd-acc9efcd81c21f083ddd54c813e692ffd635cc6a.tar.bz2 openbsd-acc9efcd81c21f083ddd54c813e692ffd635cc6a.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')
-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 | ||