diff options
author | Omar Polo <op@omarpolo.com> | 2021-10-09 21:40:55 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2021-10-09 21:40:55 +0000 |
commit | f0a01fc742e83b3f4736b5d64af3ab18148afc5a (patch) | |
tree | b0f9e815f8b7692787bc95fa70d896b648095abf /gmid.h | |
parent | 5eb3fc905f5e3bd2f2d586fb1e0ceda879500b3e (diff) |
two -n to dump the parsed configuration
This adds a barebone dumping of the parsed configuration. It is not
complete, but I'm interested in dumping the full path to `cert' and
`key' in order to write some scripts that can inspect the
configuration, extract the certificates and renew them when expired
automatically.
It's not easy to parse gmid configuration otherwise because the syntax
is flexible and users can use macros. Instead, the idea is to run
gmid and let it dump the configuration once it's been parsed in a
static and predictable format.
Now is possible to parse gmid configuration with, say, awk or perl.
Diffstat (limited to 'gmid.h')
-rw-r--r-- | gmid.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -291,6 +291,7 @@ void drop_priv(void); void yyerror(const char*, ...); void parse_conf(const char*); +void print_conf(void); int cmdline_symset(char *); /* log.c */ |