From 7af04ea4713770cd19cb9659a59f8758e4207c2c Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Thu, 24 Sep 2020 17:55:10 -0400 Subject: tls: move cert/key into host structure We'll later want to set these on the SSL object (rather than SSL_CTX), so move these into the host struct for later access. We'll prefer to set it on the SSL object so that we can automatically use an up-to-date certificate, per ~sircmpwn/gmni#26. --- include/config.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/config.h b/include/config.h index d42a1bf..495db3a 100644 --- a/include/config.h +++ b/include/config.h @@ -13,6 +13,8 @@ struct gmnisrv_host { char *hostname; char *root; SSL_CTX *ssl_ctx; + X509 *x509; + EVP_PKEY *pkey; struct gmnisrv_host *next; }; -- cgit v1.2.3