diff options
author | Anil Madhavapeddy <avsm@cvs.openbsd.org> | 2003-10-07 22:24:27 +0000 |
---|---|---|
committer | Anil Madhavapeddy <avsm@cvs.openbsd.org> | 2003-10-07 22:24:27 +0000 |
commit | 6628301891a6c202158f8acdda10d750a0e71cbc (patch) | |
tree | da8f1953413bc85c46724aa537eba2988c5edc15 /regress/gnu/egcs/gcc-bounds/md-4.c | |
parent | c76eb04ac867dbc8c6fbf9145f3b694883fb63e7 (diff) |
add a few regression tests for the recently fixed md functions
Diffstat (limited to 'regress/gnu/egcs/gcc-bounds/md-4.c')
-rw-r--r-- | regress/gnu/egcs/gcc-bounds/md-4.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/regress/gnu/egcs/gcc-bounds/md-4.c b/regress/gnu/egcs/gcc-bounds/md-4.c new file mode 100644 index 00000000000..06fb2e18fde --- /dev/null +++ b/regress/gnu/egcs/gcc-bounds/md-4.c @@ -0,0 +1,17 @@ +#include <stdio.h> +#include <stdlib.h> +#include <sys/types.h> +#include <md5.h> + +const unsigned char data[] = "1234567890abcdefghijklmnopqrstuvwxyz"; + +int +main(int argc, char **argv) +{ + MD5_CTX ctx; + char ret[10]; + + MD5Init(&ctx); + MD5Data(data, sizeof data - 1, ret); + printf("%s\n", ret); +} |