mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-14 21:47:19 +02:00
See ChangeLog: Fri Jul 28 18:19:11 CEST 2000 Werner Koch
This commit is contained in:
parent
b872ea2577
commit
d81c3f733b
12 changed files with 163 additions and 24 deletions
|
@ -25,6 +25,9 @@
|
|||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
#include <unistd.h>
|
||||
#ifdef HAVE_DOSISH_SYSTEM
|
||||
#include <fcntl.h> /* for setmode() */
|
||||
#endif
|
||||
|
||||
|
||||
#include <gcrypt.h>
|
||||
|
@ -1449,6 +1452,9 @@ main( int argc, char **argv )
|
|||
size_t n = !endless && count < 100? count : 100;
|
||||
|
||||
p = gcry_random_bytes( n, level );
|
||||
#ifdef HAVE_DOSISH_SYSTEM
|
||||
setmode ( fileno(stdout), O_BINARY );
|
||||
#endif
|
||||
fwrite( p, n, 1, stdout );
|
||||
gcry_free(p);
|
||||
if( !endless )
|
||||
|
@ -1676,6 +1682,9 @@ print_mds( const char *fname, int algo, const char *key )
|
|||
|
||||
if( !fname ) {
|
||||
fp = stdin;
|
||||
#ifdef HAVE_DOSISH_SYSTEM
|
||||
setmode ( fileno(fp) , O_BINARY );
|
||||
#endif
|
||||
pname = gcry_xstrdup("[stdin]: ");
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue