From: Dave Barter <[EMAIL PROTECTED]> davebarter> On Thursday 11 October 2001 11:52, you wrote: davebarter> > From: "Dave Barter" <[EMAIL PROTECTED]> davebarter> > davebarter> > dave> I would like to modify the openssl genrsa program to "quietly" davebarter> > generate dave> keys, ie. Not print the '.' and '+' characters to STDOUT davebarter> > when generation dave> occurs. Basically I would like to add the flag -quiet davebarter> > to the genrsa dave> command line. davebarter> > davebarter> > A very quick solution is to redirect stdout to /dev/null or something davebarter> > corresponding. davebarter> > davebarter> davebarter> Not very platform independent
True, but it's possible on most of them (obtw, the output in question is on stderr, not stdout): Unix: openssl genrsa 2> /dev/null VMS: define/user sys$error nla0: openssl genrsa davebarter> > The right way would be to change genrsa to only print to stdout when davebarter> > -quiet hasn't been given. davebarter> davebarter> Agree, but it only works with genrsa, I want to silence other modules as davebarter> well. Is there some sort of faq covering the overall design and dependancies davebarter> of openssl, it would stop me bothering you lot ! I still say that's the only way to do it. Trying to fiddle with BIO_printf() and have it "magically" see if it's supposed to be quiet or not is asking for lots of trouble. Also, it's not that many commands that have that kind of "intrusive" printout. davebarter> Thanks, this helps, could I add some value to the project by documenting at a davebarter> high level the function of each C prog. or has this been done before ? Well, you can always see what is there already in the doc/ directory tree and fill the gaps (there are gaps, absolutely, not question about it :-)). -- Richard Levitte \ Spannvägen 38, II \ [EMAIL PROTECTED] Redakteur@Stacken \ S-168 35 BROMMA \ T: +46-8-26 52 47 \ SWEDEN \ or +46-733-72 88 11 Procurator Odiosus Ex Infernis -- [EMAIL PROTECTED] Member of the OpenSSL development team: http://www.openssl.org/ Software Engineer, GemPlus: http://www.gemplus.com/ Unsolicited commercial email is subject to an archival fee of $400. See <http://www.stacken.kth.se/~levitte/mail/> for more info. ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]