Disable trust db?
Werner Koch
wk@gnupg.org
Wed, 8 Sep 1999 08:48:25 +0200
Jason Gunthorpe <jgg@ualberta.ca> writes:
> Well, I'm calling it from another program, catting the files together is
> 'more work' - having multiple files on the command line would be a nice
> feature.
>
> > cat * | gpg -n --with-fingerprint --with-colons
It is complicated to do, becuase the default operation mode of gpg
depends on the input data and I am not sure whether it is a good idea
to simply run the loop within gpg.
What about this:
if( files[0] ) {
for(n=0, p=files; p; p++ )
n += strlen(p)+1;
n += strlen(gpg_and_options)+1;
buf = xmalloc( 4+n );
strcpy( buf, "cat " );
for( *buf=0, p=files; p; p++ ) {
strcat( buf, p );
strcat( buf, " ");
}
buf[strlen(buf)-1] = '|';
strcat( buf, pgp_and_options );
system( buf );
free(buf);
}
--
Werner Koch at guug.de www.gnupg.org keyid 621CC013