From fc036335eb8d32ad991874aac364752b68a43a24 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Sat, 26 Sep 2020 16:41:11 -0400 Subject: [PATCH] Remove [:tls] email directive --- config.ini | 1 - include/config.h | 1 - src/config.c | 2 -- 3 files changed, 4 deletions(-) diff --git a/config.ini b/config.ini index b5c6052..f8cfca9 100644 --- a/config.ini +++ b/config.ini @@ -7,7 +7,6 @@ store=/var/lib/gemini/certs # Details for new certificates organization=gmnisrv user -email=jsmith@example.org [localhost] root=/var/www diff --git a/include/config.h b/include/config.h index 1a0b17c..e0d7947 100644 --- a/include/config.h +++ b/include/config.h @@ -7,7 +7,6 @@ struct gmnisrv_tls { char *store; char *organization; - char *email; SSL_CTX *ssl_ctx; }; diff --git a/src/config.c b/src/config.c index 367094f..36060cf 100644 --- a/src/config.c +++ b/src/config.c @@ -98,7 +98,6 @@ conf_ini_handler(void *user, const char *section, } strvars[] = { { ":tls", "store", &conf->tls.store }, { ":tls", "organization", &conf->tls.organization }, - { ":tls", "email", &conf->tls.email }, }; struct { char *section; @@ -223,7 +222,6 @@ config_finish(struct gmnisrv_config *conf) { free(conf->tls.store); free(conf->tls.organization); - free(conf->tls.email); struct gmnisrv_bind *bind = conf->binds; while (bind) { struct gmnisrv_bind *next = bind->next;