diff options
author | David Shaw <[email protected]> | 2003-05-31 21:52:16 +0000 |
---|---|---|
committer | David Shaw <[email protected]> | 2003-05-31 21:52:16 +0000 |
commit | ff43d07819d50c1b96f9034f5fbb5f5ce581f4bd (patch) | |
tree | 13e3845bc9b9392d862f4d9d335bc376016c5be6 /g10/main.h | |
parent | * keylist.c (list_one): Don't show the keyring filename when in (diff) | |
download | gnupg-ff43d07819d50c1b96f9034f5fbb5f5ce581f4bd.tar.gz gnupg-ff43d07819d50c1b96f9034f5fbb5f5ce581f4bd.zip |
* main.h, misc.c (parse_options): New general option line parser. Fix the
bug in the old version that did not handle report syntax errors after a
valid entry.
* import.c (parse_import_options), export.c (parse_export_options): Call
it here instead of duplicating the code.
Diffstat (limited to 'g10/main.h')
-rw-r--r-- | g10/main.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/g10/main.h b/g10/main.h index 67d2f9853..e27f78dc4 100644 --- a/g10/main.h +++ b/g10/main.h @@ -95,8 +95,16 @@ int string_to_compress_algo(const char *string); int check_compress_algo(int algo); int default_cipher_algo(void); int default_compress_algo(void); -void compliance_failure(void); const char *compliance_option_string(void); +void compliance_failure(void); + +struct parse_options +{ + char *name; + unsigned int bit; +}; + +int parse_options(char *str,unsigned int *options,struct parse_options *opts); /*-- helptext.c --*/ void display_online_help( const char *keyword ); |