diff options
| author | Werner Koch <[email protected]> | 1997-11-21 14:53:57 +0000 |
|---|---|---|
| committer | Werner Koch <[email protected]> | 1997-11-21 14:53:57 +0000 |
| commit | 2f3cb7e30a56c21f1b5182b6914104ca0c3f8f71 (patch) | |
| tree | abb30451cd6f2b6d3c28d0a91b71bc3c04a9f2a2 /g10/g10.c | |
| parent | Output armor works, RSA keygen works. (diff) | |
| download | gnupg-2f3cb7e30a56c21f1b5182b6914104ca0c3f8f71.tar.gz gnupg-2f3cb7e30a56c21f1b5182b6914104ca0c3f8f71.zip | |
Armor works now
Diffstat (limited to 'g10/g10.c')
| -rw-r--r-- | g10/g10.c | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -31,6 +31,7 @@ #include "keydb.h" #include "mpi.h" #include "cipher.h" +#include "filter.h" const char * @@ -51,11 +52,15 @@ strusage( int level ) "\nSyntax: g10 [options] [files]\n" "sign, check, encrypt or decrypt\n" "default operation depends on the input data\n" - #ifndef HAVE_RSA_CIPHER - "This version does not support RSA!\n" + #ifdef HAVE_RSA_CIPHER + "WARNING: This version has RSA support! Your are not allowed to\n" + " use it inside the Unites States until Sep 30, 2000!\n" #endif ; break; + case 26: + p = "Please report bugs to <[email protected]>.\n"; + break; default: p = default_strusage(level); } return p; @@ -75,6 +80,7 @@ set_debug(void) } + int main( int argc, char **argv ) { @@ -115,6 +121,7 @@ main( int argc, char **argv ) const char *fname, *fname_print; STRLIST sl, remusr= NULL; int nrings=0; + armor_filter_context_t afx; opt.compress = -1; /* defaults to default compression level */ while( arg_parse( &pargs, opts) ) { @@ -210,6 +217,9 @@ main( int argc, char **argv ) usage(1); if( !(a = iobuf_open(fname)) ) log_fatal("can't open '%s'\n", fname_print); + /* push the armor filter, so it can peek at the input data */ + memset( &afx, 0, sizeof afx); + iobuf_push_filter( a, armor_filter, &afx ); proc_packets( a ); iobuf_close(a); break; |
