diff options
author | Werner Koch <[email protected]> | 1998-01-28 16:09:43 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 1998-01-28 16:09:43 +0000 |
commit | 9bf8ce27bcd3a58d522262f23c2ca36bfe0a52b7 (patch) | |
tree | efa4f8e1ccbc5e989942cde55c36220dca2d8fbd /tools/bftest.c | |
parent | moved stuff to aclocal.m4 (diff) | |
download | gnupg-9bf8ce27bcd3a58d522262f23c2ca36bfe0a52b7.tar.gz gnupg-9bf8ce27bcd3a58d522262f23c2ca36bfe0a52b7.zip |
version 0.2.1
Diffstat (limited to 'tools/bftest.c')
-rw-r--r-- | tools/bftest.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/tools/bftest.c b/tools/bftest.c index bbfcd5dd1..c5d31eb1e 100644 --- a/tools/bftest.c +++ b/tools/bftest.c @@ -22,9 +22,13 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> +#ifdef __MINGW32__ + #include <io.h> + #include <fcntl.h> +#endif #include "util.h" -#include "blowfish.h" +#include "cipher.h" static void my_usage(void) @@ -48,6 +52,11 @@ main(int argc, char **argv) char iv[BLOWFISH_BLOCKSIZE]; int n, size=8; + #ifdef __MINGW32__ + setmode( fileno(stdin), O_BINARY ); + setmode( fileno(stdout), O_BINARY ); + #endif + if( argc > 1 && !strcmp(argv[1], "-e") ) { encode++; argc--; argv++; |