1
0
mirror of https://git.sr.ht/~sircmpwn/gmnisrv synced 2024-06-08 17:30:43 +00:00

Remove [:tls] email directive

This commit is contained in:
Drew DeVault 2020-09-26 16:41:11 -04:00
parent 50d21c03f5
commit fc036335eb
3 changed files with 0 additions and 4 deletions

View File

@ -7,7 +7,6 @@ store=/var/lib/gemini/certs
# Details for new certificates # Details for new certificates
organization=gmnisrv user organization=gmnisrv user
email=jsmith@example.org
[localhost] [localhost]
root=/var/www root=/var/www

View File

@ -7,7 +7,6 @@
struct gmnisrv_tls { struct gmnisrv_tls {
char *store; char *store;
char *organization; char *organization;
char *email;
SSL_CTX *ssl_ctx; SSL_CTX *ssl_ctx;
}; };

View File

@ -98,7 +98,6 @@ conf_ini_handler(void *user, const char *section,
} strvars[] = { } strvars[] = {
{ ":tls", "store", &conf->tls.store }, { ":tls", "store", &conf->tls.store },
{ ":tls", "organization", &conf->tls.organization }, { ":tls", "organization", &conf->tls.organization },
{ ":tls", "email", &conf->tls.email },
}; };
struct { struct {
char *section; char *section;
@ -223,7 +222,6 @@ config_finish(struct gmnisrv_config *conf)
{ {
free(conf->tls.store); free(conf->tls.store);
free(conf->tls.organization); free(conf->tls.organization);
free(conf->tls.email);
struct gmnisrv_bind *bind = conf->binds; struct gmnisrv_bind *bind = conf->binds;
while (bind) { while (bind) {
struct gmnisrv_bind *next = bind->next; struct gmnisrv_bind *next = bind->next;