1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

common: Change allocation of the comopt symbol.

* common/comopt.h (struct gnupg_comopt_s): New.
* common/comopt.c (struct gnupg_comopt_s): Define here in the data
segment.
This commit is contained in:
Werner Koch 2023-04-04 16:51:58 +02:00
parent d9e7488b17
commit d261f5e5d0
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B
2 changed files with 7 additions and 2 deletions

View File

@ -60,6 +60,8 @@ static gpgrt_opt_t opts[] = {
}; };
struct gnupg_comopt_s comopt = {NULL};
/* Parse the common options in the homedir and etc. This needs to be /* Parse the common options in the homedir and etc. This needs to be
* called after the gpgrt config directories are set. MODULE_ID is one of * called after the gpgrt config directories are set. MODULE_ID is one of

View File

@ -35,13 +35,16 @@
/* Common options for all GnuPG components. */ /* Common options for all GnuPG components. */
struct struct gnupg_comopt_s
{ {
char *logfile; /* Socket used by daemons for logging. */ char *logfile; /* Socket used by daemons for logging. */
int use_keyboxd; /* Use the keyboxd as storage backend. */ int use_keyboxd; /* Use the keyboxd as storage backend. */
int no_autostart; /* Do not start gpg-agent. */ int no_autostart; /* Do not start gpg-agent. */
char *keyboxd_program; /* Use this as keyboxd program. */ char *keyboxd_program; /* Use this as keyboxd program. */
} comopt; };
extern struct gnupg_comopt_s comopt;
gpg_error_t parse_comopt (int module_id, int verbose); gpg_error_t parse_comopt (int module_id, int verbose);