mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
* 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.
This commit is contained in:
parent
9390fe676b
commit
ff43d07819
5 changed files with 60 additions and 72 deletions
10
g10/main.h
10
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 );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue